DEV Community

Discussion on: A C#-er’s love affair with Swift

Collapse
 
eljayadobe profile image
Eljay-Adobe • Edited

One correction to "Explicit Parameter Names" with Objective-C ...

Objective-C does not have explicit parameter names. It has method name infix notation.

UIColor* color = [UIColor colorWithRed:1.0 green:0.5 blue:0.1 alpha:1.0];

The method name is "colorWithRed:green:blue:alpha:". None of those are parameter names. It's much more SmallTalk like.

Swift bridges the Swift way of having parameter names and the Objective-C infix notation with Lattner's magic pixie dust.

I like the learn one new programming language every year. Something I find fun and interesting. For example in .NET, I've found F# to be superior to C# in every way. I never would have discovered F# without my learn a new language every year. (And there are a ton of disappointing F# books. The one introduction / tutorial book that I found awesome was The Book of F# by Dave Fancher.) These days I do all my ".NET" stuff on Mono, on a Mac... I miss WPF, which is an amazingly wonderful technology.

This year I was planning on learning Swift 4. (I've been sidetracked learning Rust.) Several years ago I learned Swift 1, and found it to be... lacking. Swift 4 has matured a lot!

And it is surprising how similar Swift is to Kotlin, especially considering they were completely independent efforts, both started at the same time, yet have very eerie similiarities.

Collapse
 
jonstodle profile image
Jon Stødle

Thanks for the in-depth reply. This is really awesome.

I also try to learn a new language each year. It looks to be PHP, but I was originally aiming for F#. I’ll bookmark that book you mentioned for later reference.