Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
chris-martin
· 13y ago · 0 comments
What is complex about Scala's pattern matching? x matches the value x, x:A matches instances of A, A(x) matches if A.unapply(x) evaluates to a Some, and _ matches anything. Erasure throws a wrench into it, but otherwise it's pretty straightforward.
Comments
No comments yet.
Better HN