Y
Hacker News
new
|
ask
|
show
|
jobs
by
Athas
1393 days ago
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.
1 comments
a-nikolaev
1393 days ago
No parentheses can be nice for cleaner pattern matching, e.g. something like this:
match a, b with | 1, 2 -> x | _ -> y
link