31

[浅析]特定场景下取代if-else和switch的方案

 5 years ago
source link: https://juejin.im/post/5b4b73e7f265da0f96287f0a
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
世界那么大,景点那么多。有些时候,换个方式,换个角度,换个陪同,都会有不一样感觉与收获。写代码也亦如此。 1.前言 相信很多人有这样的经历,在项目比较忙的时候,都是先考虑实现,用当时以为最好的方式先实现方案,在项目不忙的时候,再看下以前代码,想下有什么更好的

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK