4 ms·
Pattern matching is 1) conditional on values, 2) conditional on structure (not something you can get in imperative languages), 3) data extractor from data struc
by dozzie 13y ago
Pattern matching is 1) conditional on values, 2) conditional on structure (not something you can get in imperative languages), 3) data extractor from data structures, all at the same time. Yes, it's helluva convenient. Pity it didn't make it to imperative languages (yet).
- DanWaterworth 13y agoIt's in rust.
- cromwellian 13y agoScala has it.