back in the day jetbrains syntax highlighting support for scala wasn’t perfect.
in scala object.prop == (object prop). you can replace dot with space and sometimes syntax highlighting would mark it in squiggly reds which is annoying so i would add dots where it would do that or where it would make sense.
I would use space when it made sense as a dsl like account deposit 300 usd
one week the principle engineer became more and more irritated and wouldn’t admit to it or share his reason. A weekend comes in, he is at the end of this rope and he tells he can’t understand why i put a dot here and not there. i explain the above and he refuses to accept this, I explain again that you can simply drop the dot sometimes and i do it for aesthetics. as far as i know he still doesn’t accept it because they threw away the scala code and replaced it with beam
View all comments
Show parent comment
96
u/FordyO_o May 01 '22
Someone I used to work with (who had a pretty hot temper) tried to ban object destructuring in JS because they didn't understand it