Posts

Showing posts from August, 2014

Swift from a C# developer's point of view

I'm thinking I might a bit of a language nut. Or maybe it's the fact that I made a half-assed attempt at Objective-C back in the day, but never could get past the barrier of brackets. In either case, Swift doesn't look half-bad. It has many of the nice features that I'm used to from .NET, including generics, while getting rid of a lot of cruft from Objective-C, including separate header and implementation files and at-declarations (@property(nonatomic copy retain)); all-in-all making the coding on iOS and Mac a lot more approachable from a variety of languages, including C#, Java and JavaScript. Listening to podcasts about the language, you quickly get to the realization that the language and tooling is still maturing (read: changing), so learning and writing about it is volatile at the moment. That said, let's ... have a Swift conversation, shall we? For starters, there's var - which works like var in C# - and let - which works like let in F#. And there&