News for hackers. Stuff that matters.
Re:Why Swift Guard Should Be Avoided by merb on Saturday January 02, 2016 @07:06AM (#10825947)
I've written 2 line functions already. It depends. If you write scala or any functional language and you do pattern match it's sometimes more readable if you have something like

    blabla match {
        case 1 => func1
        case 2 => func2
    }

instead of

    blabla match {
        case 1 => 
            println("1")
            1 + 2
        case 2 => biggerFunc
    }

There are no comments on this comment yet.