Work Note – Swift Thoughts

I’ve been working in Swift more and more over the past couple months. To get started I wrote a simple parsing class for Agrian, the product I work on. More recently, as in this week, we started doing most work in Swift. The syntax is super sugary and will take some getting used to, but I can already see I’m going to love working in it.

It seems if you have a background in C, C++, or C#, you should feel right at home. I wonder how JavaScript developers feel about it? If you have an opinion feel free to leave a comment, or write about it on your weblog. I’m curious what you have to say.

This afternoon as I was working on the app I found myself wishing I could do something like this with Swift.

let textView = UITextView() {
.userInteractionEnabled = false
.font = .defaultFont(14)
.backgroundColor = .yellowColor()
}

It feels like a natural thing to do, I don’t know why, but it does. We’re working in Swift 2.0, so if there is a way to do this, please let me know, I don’t think we can, but I’m such a noob, I’m not sure about much.