|      1crazyorr      2021-01-05 13:56:08 +08:00 a. | 
|      2mazhiyuan      2021-01-05 13:56:45 +08:00 a .b(),点在前面清晰点 | 
|      3fengxuejuan      2021-01-05 13:57:28 +08:00 只会以字母和下划线开头,所以是第二种 | 
|      4Zatoichi1966      2021-01-05 13:57:55 +08:00  1 一般用第二种, 因为单行注释,第二种注释后,不需要在调整符号位置;如下: a //.b() .c(); | 
|      5Zatoichi1966      2021-01-05 13:59:21 +08:00 第一种也可以,晕;当我扯犊子吧... | 
|      7oxromantic      2021-01-05 14:04:33 +08:00 @crazyorr shift+enter ...几百年前就有的机制了,电脑上不用 qq 微信换行么.. | 
|  |      8codyfeng      2021-01-05 14:05:14 +08:00 via Android 第二种,符号放在行首比行尾好看 | 
|      93t      2021-01-05 14:09:51 +08:00 莫名觉得第一种漂亮 | 
|  |      10Vindroid      2021-01-05 14:10:24 +08:00 .b() 放行首第一眼就知道这是个连续代码段 | 
|  |      11Lin0936      2021-01-05 14:12:21 +08:00  6 a . b() | 
|      12forgottencoast      2021-01-05 14:28:53 +08:00  1 @oxromantic  你们说的啥,不会是在这里留言怎么换行吧? | 
|      13PoetAndPoem      2021-01-05 14:38:31 +08:00 没看懂楼主说的是啥, 是指 sublime 的 ctrl+shift+ +/- 的那种快捷键 | 
|      14PoetAndPoem      2021-01-05 14:41:19 +08:00 sorry, 记错了, 是 ctrl + shift + [ / ] | 
|  |      15chendy      2021-01-05 14:46:06 +08:00 肯定要放下一行 如果是不需要的分号的语言,就一个 b() 看着像调用了一个普通方法一样(虽然从缩进上还能看出来 | 
|      16PoetAndPoem      2021-01-05 15:06:35 +08:00 @Vindroid 总算看懂了楼主说的是啥==,我也是这么做的, e.g \ list.steam() .map() .collect() \ 一般来说,在 java 里,steam 流用到这个的场景比较多,或者 signature 比较长的场景会这样做 | 
|      17webassembly      2021-01-05 15:18:44 +08:00 | 
|      18PoetAndPoem      2021-01-05 15:19:32 +08:00 @webassembly 给一个示例,求你了 | 
|      19webassembly      2021-01-05 15:26:49 +08:00 | 
|  |      20lithbitren      2021-01-05 15:28:06 +08:00 Go 放后面,其他语言原则上放前面。。 | 
|  |      21Pastsong      2021-01-05 15:31:07 +08:00  1 someStream() .pipe(fn) .pipe(fn) .pipe(fn) .pipe(fn); | 
|      22iceneet      2021-01-05 15:31:21 +08:00 a. b() | 
|  |      23boris93      2021-01-05 15:32:20 +08:00 via Android a .b() .c(); | 
|  |      25wr516516      2021-01-05 16:09:26 +08:00 a .b() .c(); | 
|  |      26favourstreet      2021-01-05 16:12:09 +08:00 via Android 写.b() 放上一行看起来不像句号吗? | 
|      27oxromantic      2021-01-05 16:42:31 +08:00 .b() 除了上面的 go,用 IDE 应该都这种形式吧,毕竟"."会触发方法提示,在触发方法提示的时候敲个回车不是为难自己么 | 
|      30b00tyhunt3r      2021-01-05 17:14:55 +08:00 | 
|      31Leviathann      2021-01-05 17:21:19 +08:00 via iPhone 现代 ide 和 lsp 都有链式调用换行时在行尾自动添加类型提示信息的功能 所以肯定是点在前面啦 | 
|  |      32qwerthhusn      2021-01-05 17:30:11 +08:00  1 其实我想考虑的是 "abc" + "def" 还是 "abc" + "def" | 
|      33bog      2021-01-05 18:01:16 +08:00 via Android 交给 clang-format 吧,否则一个团队内总会有不一样的声音的 | 
|  |      34en20      2021-01-05 18:12:20 +08:00 via iPhone 放第一行尾如果太长,会让第二行看起来是函数定义,不要这样 | 
|      35joesonw      2021-01-05 18:16:29 +08:00 a .b() 新增 .c() 的时候只有一行 diff | 
|  |      36zhangshine      2021-01-05 19:00:23 +08:00 a .b() 第二行多点空格🤣 | 
|      37waynnne      2021-01-05 19:14:47 +08:00 a .b() Java 的 Stream 流、Builder 模式中比较常见。 | 
|  |      38dream7758522      2021-01-05 19:24:23 +08:00 via Android a.b | 
|  |      39dream7758522      2021-01-05 19:24:43 +08:00 via Android a.b () | 
|  |      40linux40      2021-01-05 20:17:25 +08:00 via Android 不知道,我从没想过这个问题,我都是用代码自动格式化工具来折行的。 | 
|      41palfortime      2021-01-05 20:20:56 +08:00 via Android 交给 rustfmt 烦恼 | 
|      43jzmws      2021-01-05 20:41:37 +08:00 不过一般是  a .b() 很多开源的都是按照这样写的,然后我也用 其实跟多 a.b(c-{ }) | 
|  |      44no1xsyzy      2021-01-05 20:47:15 +08:00 | 
|      45dotw2x      2021-01-05 20:48:13 +08:00 via iPhone 习惯这么搞,看着爽一点 list.Where() .Take() .Select() .ToList(); | 
|  |      46ychost      2021-01-05 20:48:31 +08:00 stream().map(..) .filter(..) .reduce(..) | 
|  |      4720015jjw      2021-01-06 01:50:04 +08:00 via iPhone 不同语言不一样吧... | 
|  |      48PEAL      2021-01-06 09:39:23 +08:00 突然想起来 layui 的窒息写法 table.render({ elem: '#demo' ,height: 312 ,url: '/demo/table/user/' //数据接口 ,page: true //开启分页 ,cols: [[ //表头 {field: 'id', title: 'ID', width:80, sort: true, fixed: 'left'} ,{field: 'username', title: '用户名', width:80} ,{field: 'sex', title: '性别', width:80, sort: true} ,{field: 'city', title: '城市', width:80} ,{field: 'sign', title: '签名', width: 177} ,{field: 'experience', title: '积分', width: 80, sort: true} ,{field: 'score', title: '评分', width: 80, sort: true} ,{field: 'classify', title: '职业', width: 80} ,{field: 'wealth', title: '财富', width: 135, sort: true} ]] }); | 
|  |      49gaigechunfeng      2021-01-06 10:27:36 +08:00 这,上,热,门? 哈哈,年底池塘的鱼都不够摸了吗 | 
|      50songco      2021-01-06 10:44:59 +08:00 都能接受, 项目统一的 formatter 是什么样就按什么来 | 
|      51togou      2021-01-06 12:08:38 +08:00 Pms .then() .then() 这也太标准了啊 短的直接 [].filter().map().some(); | 
|      52yamasa      2021-01-06 13:14:50 +08:00 Java 要是写 stream lamda 或者 reactive,不用.func()太难看了啊。 一行一行的.func()感觉足够优雅,可读性也好得多。 | 
|  |      53wangyzj      2021-01-06 13:16:28 +08:00 除了 js 用前者 |