3 Mar 2024 |
velvetbaldmime | It's obviously a rule of thumb that I use manually, no doubt there are corner cases like the one you presented where there's ambiguity | 06:48:12 |
kitbellew | feel free to start a discussion thread, to see if a general alignment can be reached. so far, you and the author of the initial question are not in agreement | 06:50:02 |
il_totore | Usually, the method signature looks like:
def foo(/*parameter list (not mandatory)*/)(block: => Bar) | 07:01:58 |
il_totore | So
foo(bar)(baz => qux).xyz
Is not changed | 07:02:24 |
il_totore | And yes usually there are multiple statements | 07:04:17 |
il_totore | Looking at the AST: https://astexplorer.net/#/gist/ec56167ffafb20cbd8d68f24a37043a9/677e43f3adb93db8513dbe4e2c868dd4f78df4b3
It seems that foo(5) is different from foo {5} so I guess there is no ambiguity problem 🤷🏻♂️ | 07:09:11 |
| realschlawg joined the room. | 17:37:04 |
| billfrasure joined the room. | 17:44:23 |
4 Mar 2024 |
| gspitwq joined the room. | 13:56:17 |
5 Mar 2024 |
| kubukoz changed their profile picture. | 13:32:55 |
| zetashift changed their profile picture. | 16:17:36 |
6 Mar 2024 |
| davidf joined the room. | 14:58:45 |
7 Mar 2024 |
kitbellew | if you'd like to chime in, here's the proposed solution: https://github.com/scalameta/scalafmt/pull/3815 (cc il_totore velvetbaldmime .korven. ) | 18:00:29 |
| yummy_inhalant joined the room. | 19:17:24 |
10 Mar 2024 |
| olafurpg changed their profile picture. | 12:14:00 |
13 Mar 2024 |
| .philluminati joined the room. | 09:12:06 |
14 Mar 2024 |
| d.delphine joined the room. | 18:52:07 |
| m.hughes changed their profile picture. | 23:35:17 |
17 Mar 2024 |
| ukrustacean joined the room. | 13:08:26 |
| .pityka joined the room. | 18:19:02 |
18 Mar 2024 |
| david_f_goodenough joined the room. | 22:24:56 |
19 Mar 2024 |
| f40a3204 joined the room. | 09:49:47 |
| kostask3734 joined the room. | 19:19:36 |
20 Mar 2024 |
| shrimphands joined the room. | 17:10:23 |
| rpiaggio joined the room. | 19:40:46 |
22 Mar 2024 |
| mkharytonau joined the room. | 12:28:22 |
23 Mar 2024 |
| arturopala changed their display name from Artur Opala to arturopala. | 17:17:29 |
26 Mar 2024 |
| z1kkurat changed their profile picture. | 08:04:43 |
| powerful_monkey_59758_71986 joined the room. | 15:25:19 |
| pixelateddog joined the room. | 15:32:51 |