top | item 45152630

(no title)

grumpyprole | 5 months ago

No it's not pleasant at all. It's boilerplate heavy, non-local and indirect. It's presumably a large part of why pattern matching is arriving in Python.

discuss

order

flare_blitz|5 months ago

That's a lot of buzzwords to say that you enjoy shoving everything in one function. :)

grumpyprole|5 months ago

In hindsight, I think your description is indeed better!

zem|5 months ago

I guess that's subjective - I'm as big a fan of pattern matching as anyone, but when I was writing a type checker in python we made heavy use of visitors and it made the code pleasant to maintain.