←back to thread

191 points jwilk | 2 comments | | HN request time: 0.312s | source
1. the__alchemist ◴[] No.46232427[source]
I wish Python could move away from types-as-mutability-determiners. Or paper over them; all could have mutable and non-mutable variants, with "to_mut()" and "to_immut()" methods. And in the same vein, explicit control over whether functions mutate a variable in place, or make a local copy. Python is my first lang, and I still am unable to consistently reason about these.
replies(1): >>46232494 #
2. Maledictus ◴[] No.46232494[source]
I love Ruby's .freeze