▲ | UncleOxidant 5 days ago | |||||||
I mean, I guess it depends on your background, but that code looks pretty nice compared to how it would look in a language without pattern matching and ADTs. This is why the MLs excel for things like parsers, interpreters, and compilers. Beauty is in the eye of the beholder, I guess. I suspect that if you gave it a bit of time it would start to really grow on you - that's how it was in my case. At first: "WTF is this weird syntax?!", a few weeks in "oh, this makes a lot of sense, actually", a few years "Yeah, I'd much rather write this sort of thing in OCaml (or an ML in general)" | ||||||||
▲ | manoDev 5 days ago | parent [-] | |||||||
I don't find the ADT and matching part weird, but rather everything else (as mentioned). | ||||||||
|