4 ms·
Interesting discussions over on Twitter about the new parser might be letting out the complexity genie and how some think that might not be the greatest. https
by VectorLock 6y ago
Interesting discussions over on Twitter about the new parser might be letting out the complexity genie and how some think that might not be the greatest. https://twitter.com/ramalhoorg/status/1358168753100496907 https://twitter.com/ramalhoorg/status/1358168753100496907
- stickyricky 6y agoNot really. Its a string of preferences for Python's development. I hope the author pursues those endeavors and encourages others to join him. But they're not an argument against pattern matching.
- VectorLock 6y agoTalking about preferences still qualifies as interesting discussion.
- paulgb 6y agoAs someone who hasn’t been following closely, was the PEG parser necessary for pattern matching or is that an unrelated change?
- pansa2 6y agoIIRC one of Guido’s reasons for switching to a PEG parser was to enable the addition of pattern matching.
- erichurkman 6y agoAnd it allowed some non-intuitive parser limitations to be lifted, like full expressions in decorators (@buttons[0].click) and parentheses in context expressions (https://bugs.python.org/issue12782 https://bugs.python.org/issue12782).