You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to simplify some literal sub-patterns.
This syntax does not deprecate any existing ways to describe patterns as it lacks
many features like captures, \... wildcards, etc.
The change itself requires patterns expr to become overloaded with additional form that expects single literal string argument.
If Go parser fails to resolve AST for that sub-pattern, whole pattern compilation fails.
stmt and decl patterns may have same feature somewhere in future, but not it's unclear if this is as important as for expressions.
The text was updated successfully, but these errors were encountered:
Make it possible to inline Go syntax into pattern templates.
For example:
The idea is to simplify some literal sub-patterns.
This syntax does not deprecate any existing ways to describe patterns as it lacks
many features like captures,
\...
wildcards, etc.The change itself requires patterns
expr
to become overloaded with additional form that expects single literal string argument.If Go parser fails to resolve AST for that sub-pattern, whole pattern compilation fails.
stmt
anddecl
patterns may have same feature somewhere in future, but not it's unclear if this is as important as for expressions.The text was updated successfully, but these errors were encountered: