Hacker News new | ask | show | jobs
by 0942v8653 4170 days ago
That's one of my favorite things about Swift. I can do, for example:

    // version 1
    var author: String

    // version 2
    var author: String {
        get {"\(authorFirst) \(authorLast)"}
    }
1 comments

C# as well. C# 6 is very concise.