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
Just a quick idea. If there are placeholders like __, maybe there is a chance to implement something like erlang has with its pattern matching system. 😻
A simple matching on ints, strings or booleans for a start would be interesting. 💓
The text was updated successfully, but these errors were encountered:
Looks cool :-) Please make a PR so we can explore it further.
We need examples that proof the usefulness though. If we can only do pattern matches that can be easily rewritten as return $x == 42 ? "Called with 42" : "Called with $x"; then there's no point.
trouble with this is that $head & $tail are unassigned at the moment we do the with() call, which will lead to php errors&warnings. Anyone with ideas about how to fix this?
Just a quick idea. If there are placeholders like
__
, maybe there is a chance to implement something like erlang has with its pattern matching system. 😻A simple matching on ints, strings or booleans for a start would be interesting. 💓
The text was updated successfully, but these errors were encountered: