3 ms·
OK, I also don't like Scala's inability to deconstruct in the parameter list. I come from an ML background where that is possible. But I found it less botherso
by YorkshireSeason 8y ago
OK, I also don't like Scala's inability to deconstruct in the parameter list. I come from an ML background where that is possible. But I found it less bothersome in practise than I had originally anticipated.
Erlang has pattern matching on bits [1] which is convenient, that would be nice to have, especially when writing networking software.
[1] P. Gustafsson, K. Sagonas, Efficient manipulation of binary data using pattern matching.
- macintux 8y agoGood point on the binary pattern matching. I’ve rarely used it, but it is quite powerful. I was pleased to discover Python’s tuple pattern matching in function heads, only to be disappointed that it was removed in Python 3.