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
Where string... takes care of all the potential captures in the pattern. For folks that do a lot of pattern matching, having the return type reflect the exact number of captures could be useful.
If teal could automatically determine the number of captures (by doing some careful parenthesis counting), and warn the developer if there is a mismatch, then someone could know if one of the fields was missing or if there was an issue with the pattern before runtime.
I'm not sure if there are any "dyanmic" return types in Teal today, and what exactly it would entail. But it would be cool!
The text was updated successfully, but these errors were encountered:
as of now,
string.find
has the type:Where
string...
takes care of all the potential captures in the pattern. For folks that do a lot of pattern matching, having the return type reflect the exact number of captures could be useful.An example with pattern matching timestamps:
which has a return type of:
If teal could automatically determine the number of captures (by doing some careful parenthesis counting), and warn the developer if there is a mismatch, then someone could know if one of the fields was missing or if there was an issue with the pattern before runtime.
I'm not sure if there are any "dyanmic" return types in Teal today, and what exactly it would entail. But it would be cool!
The text was updated successfully, but these errors were encountered: