2 ms·
And C++, C#, and JS use arrow for lambdas, so there's precedent for both.
by int_19h 2y ago
And C++, C#, and JS use arrow for lambdas, so there's precedent for both.
- RedComet 2y agoMy comment had nothing to do with lambdas. The point is that Kotlin uses fun and : instead of fn/func and ->, which is a needless and tedious break with other modern languages using Pascal-style function declaration. Using val instead of let is similarly off-putting.