|
|
|
|
|
by arp242
717 days ago
|
|
It's not that difficult; just place the "." at the end of the line: foo.
bar()
And that will work fine. At least in Go.You can endlessly argue what location is better for the ".", but it really doesn't really matter. Regardless, you don't really need to do parser tricks. |
|
It also looks like shit, because now you have to check the end of the previous line to know whether it's a method call or a function call which was indented in incorrectly.