These are chat archives for evhub/coconut
__join__is fine, that's what coconut-prelude does. The only reason not to use a dunder (double-underscore) name is if it conflicts with one being used by Python/Coconut, which it doesn't.
addpatternwith pattern-matching functions not normal functions. Since both of your
funcdefinitions are just standard Python syntax, they raise TypeError instead of MatchError, and thus
addpatterndoesn't work on them. Just use
match definstead of
defto fix the issue. I should probably be more clear about this in the documentation, so raising an issue with this would be much appreciated.