Chatting in DMs, and it came up that many of my favorite things about Rust aren'...

@xgranade@wandering.shop

Chatting in DMs, and it came up that many of my favorite things about Rust aren't actually anything to do with Rust itself — almost any imperative language could do what Rust did and copy typeclasses (traits/impls in Rust parlance) and ADTs/DUs (enums in Rust) from ML-like languages.

It's just that for whatever reason, those two language features have gotten strongly associated with functional programming despite not having any strict ties to functional paradigms.