Language like Javascript but without closures? 4 points by marktangotango 12y ago ↗ HN Does anyone know of such an animal?
[–] a8i 12y ago ↗ I'll ask the obvious question: why?Closures are the natural result of allowing the dynamic creation of lambdas, which is pretty central to JS as a language. A language "like Javascript but without closures" would no longer be "like Javascript". [–] marktangotango 12y ago ↗ Good point. More specifically, a dynamically typed, prototype based object oriented language with C style curly brace syntax. [–] qbrass 12y ago ↗ http://nekovm.org/
[–] marktangotango 12y ago ↗ Good point. More specifically, a dynamically typed, prototype based object oriented language with C style curly brace syntax. [–] qbrass 12y ago ↗ http://nekovm.org/
[–] CyberFonic 12y ago ↗ You don't have to use closures in JS if you don't like them.Have you looked at http://selflanguage.org/ that evolved from Smalltalk? It is prototype based, but not curly brace syntax.Are you looking for an interpreted or compiled language?Have you looked at the Wikipedia entry? http://en.wikipedia.org/wiki/Prototype-based_programming
[–] jroesch 12y ago ↗ JavaScript goes from a mediocre language to nearly unusable without closures. [–] marktangotango 12y ago ↗ Yes, I should have specified javascript strict mode, with a namespace and or module system :) Hmm, getting quiet the requirements here.
[–] marktangotango 12y ago ↗ Yes, I should have specified javascript strict mode, with a namespace and or module system :) Hmm, getting quiet the requirements here.
6 comments
[ 2.8 ms ] story [ 23.9 ms ] threadClosures are the natural result of allowing the dynamic creation of lambdas, which is pretty central to JS as a language. A language "like Javascript but without closures" would no longer be "like Javascript".
Have you looked at http://selflanguage.org/ that evolved from Smalltalk? It is prototype based, but not curly brace syntax.
Are you looking for an interpreted or compiled language?
Have you looked at the Wikipedia entry? http://en.wikipedia.org/wiki/Prototype-based_programming