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
-
donuts236726y@telephantasm I did, that was my reply, minus the J's part cuz he has no exp beyond stuff that can be done in Notepad.
-
First and only language where you can inline...
... I am still chewing on that one... -
donuts236726y@Yamakuzure chewing, what you mean? you can declare an anonymous class in the method.... Though I guess u can do it in JS as well...
-
Salim3486yA wise old monk once said a phrase that became a prayer:
"Not all anonymous functions are arrow functions, but all arrow functions are anonymous functions"
Amen -
donuts236726y@PrivateGER in C# they're called lambdas and I think in most languages too. But when I was searching this for JS the top results were irrelevant. Then just searched for anonymous functions, where it said actually these are called arrows in JS.
I was just chatting with my dad. He used to be mostly a C# dev but changed jobs and is now doing mostly Java. He says he likes it better.... Because it doesn't have lambdas/anonymous functions.
Uh.... Java was the first and only language where you can define interface implementations in-line (aka a whole bunch of functions)...
And 1.8 supports lambdas for Interfaces that have a single function...
I bet he'll hate JS... Where functions are can be passed around like objects, ES6 now supports lambdas and await, async... and anonymous functions (apparently they're called arrow functions?)
rant