Live data from Hacker News

The Swift Programming Language

developer.apple.com

301–310 of 970 posts

Re: The Swift Programming Language

#304

Earlier quoted context omitted.

Please. Please. PLEASE don't be whitespace delimited! One of the prime examples I give for how HN/reddit has gone downhill was being downvoted by some clueless hipsters for suggesting that it would be easy to cross-compile from a whitespace-delimited language to a non-whitespace-delimited one. It's not some kind of huge fundamental divide in languages. For any non-whitespace delimited context free language, it should…

Practically speaking I'd prefer to work with a language and toolchain that doesn't require me to do that kind of stuff (write my own cross compiler from a derivative of the language that has all my own preferences for syntax). I'd constantly worry about maintaining that piece and having that cut into my quality & productivity. I think applied language theory as it pertains to productivity is fair game for a good disc…

"Clueless hipsters" will attract downvotes.

Re: The Swift Programming Language

#305

Why is this platform not JavaScript based (so we can leverage the largest ecosystem in the world) or Python based or anything-else-that-exists based? In other news, has Android killed iOS yet so we can stop worrying about Apple? Can't happen soon enough.

If you take a look at Swift, a lot of the different constructs are implemented similar to how they would be in languages like JS or Python.

Re: The Swift Programming Language

#306
post #293

So it looks like the language isn't open source and won't target non-Apple runtimes? I'm not trying to troll, I just think that it's a pity that Apple tends to limit the ecosystem and applications of its otherwise-great languages. Building against LLVM ought to make it fairly trivial to make this cross-platform.

[deleted]

Different Swift language. That is a "parallel scripting language" for scientists and is written in Java.

Re: The Swift Programming Language

#309

Earlier quoted context omitted.

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.

"let" is JavaScript as well. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

the typing system seems to be from ecmascript as well

var distance:Double = 70.0

Post reply on HN