Chinay-Domitrix
Chinay-Domitrix
> how come unlike most other languages you use `=>` instead of just putting `()`? I concur. This is one hell of a jank way to declare functions/methods/whatever-you-want-to-call-them.
> When scrolling through a file, you will see all the function names instantly rather than having scan across the file to find a name Umm ever heard of Ctrl+F...
> As @Chinay-Domitrix has mentioned isn't it possible to use `ctrl` + `f` to find the function name? Also if a function was written like this: > > ```rust >...
> A JS function declaration: > > ```js > function foo() { > console.log("bar"); > } > ``` > > Or a Kotlin function declaration: > > ```kotlin > fun...
IMO whether or not you add an explicit function declaration keyword is up to you; however, please do drop the lambda. As I have said before, convention over innovation.
Or in the worst case, you could keep the lambda, but move it to after the parenthesis