News for hackers. Stuff that matters.
Re:Why switch is better than if-else by pmontra on Saturday June 29, 2019 @02:52PM (#20314119)
And languages with multiple function definitions for different arguments are even better

    def(arg = value_0) { ... }      
    def(arg = value_1) { ... }
    def(arg = value_2) { ... }
    def(arg) { ... }
Example: Elixir.
Re:Why switch is better than if-else by mortoray on Saturday June 29, 2019 @05:59PM (#20315056)
I agree. General purpose pattern matching in both expressions and function dispatch is a great feature.