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
multi regex-dispatch(/fo+/) { };
multi regex-dispatch(/ba+/) {};
regex-dispatch("foo");
Calling regex-dispatch(Str) will never work with any of these multi
signatures:
(Int $ where { ... })
(Int $ where { ... })
Obviously what I meant was dispatch it to the one matching. correct answer
is to do $ where /../. A literal regex could be an alias for that like a
literal "foo" is an alias for $ where "foo". Otherwise make it a compile
time error saying you can't use a literal regex in a signature.
p6rt
added
LTA
Less Than Awesome; typically an error message that could be better
RFC
Request For Comments
labels
Jan 5, 2020
Migrated from rt.perl.org#128278 (status was 'new')
Searchable as RT128278$
The text was updated successfully, but these errors were encountered: