Re:From Node to Ruby on Rails
by danjac on Friday December 17, 2021 @03:46AM
(#29589557)
Python 3.10 introduces pattern matching: I've not had the chance to really play with it yet so can't say how fully featured it is, but you can do something like:
In addition you can use type hinting:
Unfortunately I don't think you can yet do the neat argument unpacking as per your Elixir example, but it's some of the way there.
[ Parent
| on HN ]
There are no comments on this comment yet.