-
Notifications
You must be signed in to change notification settings - Fork 6
Description
SciML is migrating from Expronicon to Moshi. To make that less breaking I already added some tricks like SciML/SciMLBase.jl#921. Another concern is that Mochi ADTs cannot be matched with MLStyle out of the box. We could of course migrate MLStyle to Moshi but there is a lot of code out there so it would help if we can match Moshi ADTs with MLStyle. Since both support extensible pattern matching I guess that can be made to work, I haven't tried yet. Do you already happen to have code for this? Would you be interested in having such code in a weak dependency, or should we place it in a weakdep of say SciMLBase? See also discussion in SciML/SciMLBase.jl#922 (comment).
https://thautwarm.github.io/MLStyle.jl/latest/syntax/pattern.html#custom-patterns
https://rogerluo.dev/Moshi.jl/start/match/#extensible-pattern-matching