
50

感叹一下,花括号换不换行真能把人难受死哈哈
source link: https://www.v2ex.com/t/801982
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.

感叹一下,花括号换不换行真能把人难受死哈哈 - V2EX
我一个朋友?:
之前写 java,工作现在参与一个.net 后端,看到花括号换行真的浑身难受,前辈说他写 js 时候看花括号不换行也难受的要死
之前看硅谷,看他们调侃 tab 还是空格的时候还感觉是夸张了
习惯真的挺有意思的???
33 条回复 • 2021-09-15 18:39:05 +08:00
Rwing 2 小时 0 分钟前
没想到这个问题也能黑起来,明明是两种风格,没有孰优孰劣。
有这个功夫,不如看看这两行代码哪个更清爽
person.setAge(p.getAge() + 1);
person.Age++;
有这个功夫,不如看看这两行代码哪个更清爽
person.setAge(p.getAge() + 1);
person.Age++;
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK