3 ms·
A few weeks ago I tweeted this [1]: Frankly, writing Python code in 2023 with types annotations, dataclasses, structural pattern matching, and an editor (Kate
by p4bl0 3y ago
A few weeks ago I tweeted this [1]:
Frankly, writing Python code in 2023 with types annotations, dataclasses, structural pattern matching, and an editor (Kate ♥) that supports LSP with the mypy plugin for pylsp installed is just as cool as writing OCaml code!
The addition of the `match` construct since Python 3.10 is indeed a huge additional improvement that is called for in the linked post which dates back from before it was a thing (from the blogpost: “One thing I miss from Rust is its ‘richer’ enums, and pattern matching”).
[1], in french https://twitter.com/p4bl0/status/1667300422426476544 https://twitter.com/p4bl0/status/1667300422426476544