Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
patrec
· 3y ago · 0 comments
Several languages have what I think you are asking for. Have a look at Scala's extractors or F#'s active views.
Comments
[–]
cmrdporcupine
3y ago
Ah yes, many moons ago (like... almost 15 years) I worked in Scala and I recall extractors, or at least the discussion of them.
[–]
foderking
3y ago
you mean f# active patterns?
[–]
patrec
OP
3y ago
Sorry, yes.