14 years into Scala, I'm experimenting with a new way of formatting my code. I've started column-aligning each opening `(` of explicit/implicit parameter block, and the `:` of the return type in method/class definitions, with a four-space indent for long lines. Liking it so far.
-
Show this thread
-
6 replies 2 retweets 7 likesShow this thread -
Replying to @propensive
How did you format the implicit group before if it didn't fit in a single line?
1 reply 0 retweets 0 likes
Replying to @Kamugo
I always felt like the closing `)` of the preceding block and the opening `(` of the implict block should have zero whitespace between them. So I'd start by putting the entire signature on one line, and then just split on whitespace, fitting as much on each line as possible.
2:31 AM - 24 Jul 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.