▲ | kragen a day ago | |||||||||||||||||||||||||
In my example above, to add a new variant type to bicexpr, you need to edit roughly every function that pattern-matches on bicexprs, which is a good fraction of the Bicicleta interpreter codebase. | ||||||||||||||||||||||||||
▲ | sevensor a day ago | parent [-] | |||||||||||||||||||||||||
Ah, I see. I’ve written that code where you have to add one case to a whole bunch of pattern matches. It’s not terrible; I rather like that everything that does the same thing is in the same place. But I have wondered if there was a better way. Clearly I need to go read the article again. | ||||||||||||||||||||||||||
|