Oh I would love to see a write up comparing it with Scala idioms. As a person who has done C# for a while a lot of idioms translate very well to Swift.
The if let x = whatever {} syntax in Swift is damn brilliant after looking at a ton of C# code with the as check.
Comments
Oh I would love to see a write up comparing it with Scala idioms. As a person who has done C# for a while a lot of idioms translate very well to Swift.
The if let x = whatever {} syntax in Swift is damn brilliant after looking at a ton of C# code with the as check.
Here is a Swift vs Scala syntax comparison:
https://leverich.github.io/swiftislikescala/
And also, a comparison to C#:
http://pietschsoft.com/post/2014/06/07/Basic-Comparison-of-C...
I agree, there are more than a few features I'd like to see C# adopt from this, and that's a big one. Proper string interpolation is another.