Daniel F Moisset
Daniel F Moisset
I may have missed it, but it's not clear to me at which point are locals bound to the matched value in case of a partial match failure. For example:...
One fo the things I did related to #113 but Outside the motivation was add a new subsection at the beginning of **Syntax and Semantics**: https://github.com/dmoisset/peps/blob/motivation/pep-0622.rst#syntax-and-semantics What I'm trying to...
The PEP says that a sequence match: * cannot be any kind of string (str, bytes, bytearray) * must be an instance of `collections.abc.Sequence` I got why the first rule...
One of the places where pattern matching can shine is operating on ASTs. So it would be really useful to have good support `ast` classes from the start. And it...
This may look as a rehash of #120, but it's not. I don't want to push for a specific solution, but I'd like to turn it into a question/concern to...
Something that is not 100% clear to me is what happens with exceptions raised while matching. The only description I found is [here](https://www.python.org/dev/peps/pep-0622/#guards) «If evaluating a guard raises an exception,...
I was about to describe some weird cases and limitations and issues I think the `__match__()` protocol has, but instead of that I think something simpler can be done: getting...
It would be useful to access spell lists by availability to a class, like all Wizard 6 or every Druid 3 spell.
It's customary when providing APIs for runners to provide an optional argv argument to use instead of sys.argv. This allows building custom runners more easily or overriding/defaulting arguments. It also...
At https://github.com/machinalis/featureforge/blob/develop/featureforge/flattener.py#L197 , `TypeError`s are caught. The call to `next()` triggers feature evaluation, and when the call to a feature raises a `TypeError`, that exception is caught and a `ValueError("Cannot...