Spent a while trying to abstract a 'pairwise map fn' before realising I'd reinvented fold. At least it's easy to spot familiar abstractions.
miniblog.
Related Posts
I've heard of 'blub languages', where you don't realise that other languages have better abstractions until you've experienced them.
I think the same thing happens with individual features. I've seen several C++ folks miss variadic generics in Rust, but I've not written enough C++ to feel it.
I really like "zero cost abstractions" as a programming language motto. It's really effective for evaluating design decisions.
I've heard it for both C++ and Rust. Are there other PL mottos that are equally helpful?
Thoughtful talk on the compile time, runtime and cognitive overhead of abstractions: https://www.youtube.com/watch?v=rHIkrotSwcc