8 ms·
`fst` and `snd` possess a symmetry which `first` / `second` lack Personally I've got used to them like in no time
by vrotaru 4y ago
`fst` and `snd` possess a symmetry which `first` / `second` lack
Personally I've got used to them like in no time
- markeibes 4y agoI still hate them after 5 years of professional PureScript.
- bmitc 4y agoWhy is symmetry in word length needed?
- agumonkey 4y agosome people click on this.
- xigoi 4y agoAlignment. x = fst(some complex expression) y = snd(some complex expression)
- bmitc 4y agoThe need for such alignment denotes a further deficiency in the language if it lacks pattern matching. (x, y) = some complex expression And I’m not for sure if this alignment overrides the readability aspect. Verify few languages have alignment in mind, and even less formatters do, so it isn’t clear why alignment is so strongly needed in this very particular case. And what about third and fourth?
- michaelcampbell 4y agoWhy is anything "needed"? It's all a continuum of convenience, readability, familiarity, prior art, and preference. That you fall somewhere differently on any or all of those spectrums than the author is fine.