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
-
coookie26158yActually it is dynamically typed, so IDEs can't do much. If you want that kind of support then check out Typescript
-
coookie26158y@rookiepatty That assigning function to a variable is done by scala too. Functions are first class citizens in a lot of languages
-
pepo9005128yI guess most people tend to diss duck typed languages and forgets to embrace their freedom. If it looks like a duck and quacks like a duck, it's a duck! It can't be simpler than that.
-
@rookiepatty its not exactly passing a function, specifically its a code block, even c and c++ has this feature its how functional programming is done. Even in assembly language you can do this (though there's no functions in assembly line language) but you can create a similar effect
Oh and if I'm not mistaken java 8 just added support for this -
with Elm-Lang you get imutable js. Elm a haskel style strongly typed language that compiles to html css javascript. It has one of the best and friendliest compiler so that your javascript just works predictably.
http://elm-lang.org
JavaScript syntax are so bad that even IDE is useless for such language
undefined
javascript