Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joewillsher
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
1.
▲
by
joewillsher
10y ago
There has been some community work on Windows, no official promises but IIRC there is already very basic support.
2.
▲
by
joewillsher
10y ago
Here’s your explanation: https://github.com/apple/swift/blob/master/docs/ErrorHandlin... There has been discussion about statically typed errors on the evolution mailing list — some core team member
3.
▲
by
joewillsher
10y ago
Does saying 'ARC' not work for you? :) And the Swift runtime is pretty minimal, mostly used for storing dynamic type information, dispatching protocol methods, generating (unspecialised) generic types, checking conformances etc. I
4.
▲
by
joewillsher
10y ago
Yes, the swift runtime does stuff like heap allocation & reference counting for classes, type introspection (including `as` casts), error handling, as well as generating instances of unspecialised generic types, and dispatching (dynamic
5.
▲
by
joewillsher
10y ago
You can use the zip function to loop through 2 collections. `for (l, r) in zip(c1, c2) {` It is not simply motivated by making code concise, I would say `for num in collection.reverse()` is less error prone and clearer than `for (var i = co
6.
▲
by
joewillsher
10y ago
Yeah, I still wouldn’t say that c++ is “one of the most widely-used languages for writing native apps” for OS X. And internally apple use other languages a lot, but frameworks like UIKit, AppKit, and many of the other public frameworks they
7.
▲
by
joewillsher
10y ago
Most apple platform apps are written in mostly objc or Swift and not C++, I wouldn’t say it is one of the most widely used languages on these platforms by any means. The Cocoa SDK exposes an objc interface so many system framework calls hav