5 ms·
The list doesn't mention optionals in Swift. Optionals are a substitute for nil/NULL and handle the absence of a value in a type-safe manner. It is similar to
by pkaler 11y ago
The list doesn't mention optionals in Swift. Optionals are a substitute for nil/NULL and handle the absence of a value in a type-safe manner. It is similar to the Maybe type in Haskell.
(BTW, if you're interested in Swift, I send a weekly newsletter at http://swiftnews.co http://swiftnews.co)
- deleted 11y ago[deleted]
- supster 11y agoGood catch, I added it to the list
- catnaroek 11y agoOptionals aren't a “functional concept”, whatever that means. They're just another data type, like tuples, lists, trees, etc.
- whitegrape 11y agoIt should be implied by generics. But it looks like Swift has some special sugar for it, neat.
- melling 11y agoI also maintain a collection of list resources. I have daily and weekly views as well, as the ability to search: http://www.h4labs.com/dev/ios/swift.html?week=0 http://www.h4labs.com/dev/ios/swift.html?week=0 http://www.h4labs.com/dev/ios/swift.html?date=0 http://www.h4labs.com/dev/ios/swift.html?date=0 http://www.h4labs.com/dev/ios/swift.html http://www.h4labs.com/dev/ios/swift.html My server is written in Go and runs on AppEngine. I like both Swift and Go. It's more convenient to work with one language but Swift probably needs a couple more years to bake on Linux. Go is fast enough that my AppEngine server never has performance issues. I highly recommend it.