2 ms·
Those myriad different meanings of "_" depending on context is positively Perl-like. Seems like a good Scala style guide would ban the use of it altogether, or
by jimbokun 15y ago
Those myriad different meanings of "_" depending on context is positively Perl-like.
Seems like a good Scala style guide would ban the use of it altogether, or just white list a couple of uses.
Are both {} and () equally valid delimiters for scoping an anonymous function? If so, always using {} would help to avoid confusion with tuples.
{ _ + _ } as a function taking two arguments seems just wrong to me. Shouldn't it be { _1 + _2 }?