News for hackers. Stuff that matters.
Re:Introducing Swift by munificent on Monday June 02, 2014 @03:29PM (#7835568)
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.

Re:Introducing Swift by billyhoffman on Monday June 02, 2014 @03:41PM (#7835708)
Re:Introducing Swift by seanalltogether on Monday June 02, 2014 @03:47PM (#7835757)
the typing system seems to be from ecmascript as well

var distance:Double = 70.0

Re:Introducing Swift by munificent on Monday June 02, 2014 @07:00PM (#7837049)
This type annotation syntax comes from ML in the 70s (60s?).
Re:Introducing Swift by Raphael_Amiard on Tuesday June 03, 2014 @02:25PM (#7841910)
Pascal actually predates ML and has this syntax too. http://en.wikipedia.org/wiki/Pascal_(programming_language)
Re:Introducing Swift by Sami_Lehtinen on Tuesday June 03, 2014 @10:43AM (#7840464)
Programmers here? But they haven't ever heard of BASIC? LET has been used for variables least since 1968.
Re:Introducing Swift by zimpenfish on Tuesday June 03, 2014 @10:46AM (#7840492)
Hasn't it been used for binding in LISPs since the early 1960s? Swings and roundabouts.
Re:Introducing Swift by arasmussen on Monday June 02, 2014 @03:36PM (#7835650)
var and let were referring to ripping off other languages and the syntax you pointed out as unique is the syntactic craziness.
Re:Introducing Swift by arcatek on Monday June 02, 2014 @03:33PM (#7835604)
And "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.