Re: Gara: pattern matching DSL

2018-09-26 Thread andrea
I am really happy to see a complete pattern matching library for Nim! Congratulations for your efforts!

Re: Gara: pattern matching DSL

2018-09-25 Thread alehander42
After some more irc discussion, I can summarize my worry as It seems hard to combine having some "always available" dsl features [e.g. @ for captures, _, if guards etc] with the ability for an user to rewrite freely a branch: which makes reading of very hard, as you need to know if

Re: Gara: pattern matching DSL

2018-09-25 Thread alehander42
Thank you, and was a temporary workaround in the DSL, but I guess it seems to be an ok solution for this. I thought about also adding or for an union of patterns, but I am not sure how useful would it be. Honestly, I didn't really know they are already implemented, I looked up now and all I

Re: Gara: pattern matching DSL

2018-09-25 Thread Araq
* I'm a little confused why this doesn't use the new case statement macros. * I **love** the `if` guards with `and`! Much easier than my ideas which was yet-another core syntax extension.

Gara: pattern matching DSL

2018-09-24 Thread alehander42
Basically [https://github.com/alehander42/gara](https://github.com/alehander42/gara), I'd love some feedback : what do you like, what do you find confusing?