by staticassertion · 4y ago · 0 comments
> unless there was a way to specify functions that don't modify their parameter this way (readonly parameters?).
Right, so in a language with typed mutability (ie: Rust) or total immutability flow typing would be a lot easier to implement without these footguns. Python is such an insane language, I'm not surprised to see that you can subvert the type checker like this.
No comments yet.