Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Athas
· 4y ago · 0 comments
I never understood the motivation for allowing tuples without surrounding parens. There are a few very simple functions that look cuter this way, but it constantly trips me up in more complex situations.
Comments
[–]
a-nikolaev
4y ago
No parentheses can be nice for cleaner pattern matching, e.g. something like this:
match a, b with | 1, 2 -> x | _ -> y