4 ms·
You say "Apple syntactic craziness", but "var" is identical to JS, et. al. and "let" is identical to ML, et. al. The string interpolation syntax is unique, but
by munificent 12y ago
You say "Apple syntactic craziness", but "var" is identical to JS, et. al. and "let" is identical to ML, et. al.
The string interpolation syntax is unique, but kind of makes since given then \ is the escape character in C strings.
- arcatek 12y agoAnd "let" will have a totally different meaning in ES6. It's a bit weird to use a keyword from some language with the same meaning, and another keyword from the same language but with a totally different meaning.
- arasmussen 12y agovar and let were referring to ripping off other languages and the syntax you pointed out as unique is the syntactic craziness.
- billyhoffman 12y ago"let" is JavaScript as well. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- seanalltogether 12y agothe typing system seems to be from ecmascript as well var distance:Double = 70.0
- munificent 12y agoThis type annotation syntax comes from ML in the 70s (60s?).
- Sami_Lehtinen 12y agoProgrammers here? But they haven't ever heard of BASIC? LET has been used for variables least since 1968.
- zimpenfish 12y agoHasn't it been used for binding in LISPs since the early 1960s? Swings and roundabouts.
- Raphael_Amiard 12y agoPascal actually predates ML and has this syntax too. http://en.wikipedia.org/wiki/Pascal_(programming_language) http://en.wikipedia.org/wiki/Pascal_(programming_language)