Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
vane11049126d"I'm calling cops mother fucker".split("").map(parseInt).filter(a=>a).reduce((a,b) => a+b).toString().split("").reverse().join("")
-
dotenvironment984125dif the answer is not sex , then i am not going to open a browser and type all this shit
-
lorentz14781125d@Lensflare What bugs me especially is that this would probably work in Typescript as well. First-class functions are marched purely by type, so if a caback fits it sits.
-
lorentz14781125dI wonder how unintended argument aliasing can be solved with language design. Sure abandoning fcf or optional arguments is one way to do it, but those are also useful.
-
lorentz14781125dMaybe one could force users to specify the arity, perhaps with the function/n syntax Elixir uses, when functions are passed directly by name and neither the argument nor the callee is a locally defined function with no optional parameters
-
Lensflare14105125d@lorentz why not just forbid to pass functions as values when they have more than one parameter?
Piping multiple values would be an unreadable mess anyway. -
lorentz14781124d@Lensflare That actually makes a lot of sense. If you spell out the arguments, an inconsistency in their order is both very obvious and very easy to fix.
Related Rants
If you know...
joke/meme
iykyk
js