4 ms·
Christ these are features we should be excited for? Give us proper lambdas. Give us pattern matching on types with extraction. Give us first class functions. Gi
by domlebo70 14y ago
Christ these are features we should be excited for? Give us proper lambdas. Give us pattern matching on types with extraction. Give us first class functions. Give us higher kinded generics so we can stop duplicating code. None of these things are impossible to do without breaking compatibility, so just do it already.
- InclinedPlane 14y agoPopular languages with lambdas/closures/first class functions: Ruby, Python, C#, Objective-C, Javascript, C++ 11 ... PHP If you happen to find yourself being the personification of a programming language, and if you discover that PHP is a more advanced language than yourself then you have my permission to spend a night drinking heavily before hanging yourself from a lamp cord tied to a rafter in the garage.
- gurkendoktor 14y agoApple's blocks are not even limited to just Objective C, they're designed to work with C as well. (They're still not a standard feature, of course).
- martinced 14y agoClojure too classifies as "popular" I guess. But I forgot this was HN: the place where people are allergic to homoiconicity ; )
- DomBlack 14y agoThese features are already possible with the existing byte code in JVM 6. Because it is all implement and possible using Scala.
- domlebo70 14y agoBut all of those things are accomplished using plain Java (I.e. a Function1<InputType, OutputType>) and classes with static methods for objects etc. It's not done at a bytecode level. You can do everything you can do in Scala... in Java, it's just hilariously verbose.
- cageface 14y agoI'm keeping a close eye on kotlin.