Re:Ask HN: What's something you'd like that programming lang...
by karmakaze on Tuesday May 12, 2020 @07:01PM
(#23161158)
1. Delayed function argument expression evaluation. Only evaluate the argument if the result is consumed.
You can get close using Callable<V>/.call in Java or better with 'lazy' in Kotlin, but I want it to be default behaviour. Even 'let' in Lisp/Clojure is sometimes annoying being eagerly evaluated.
2. 'var' function argument and return types. Basically allow type inference to work through a call stack.
Basically I want F# features to be in more popular languages.
You can get close using Callable<V>/.call in Java or better with 'lazy' in Kotlin, but I want it to be default behaviour. Even 'let' in Lisp/Clojure is sometimes annoying being eagerly evaluated.
2. 'var' function argument and return types. Basically allow type inference to work through a call stack.
Basically I want F# features to be in more popular languages.