by true_religion · 8h ago · 0 comments
- Adding field X also adds field x_pk
- Adding field X also changes the signature of function Y to accept parameter x, x__lt, x__gt, etc.
- Adding field X lets you do a.x = 5, even though X is not really an integer
As an aside, I have to give it to the Typescript team for taking Javascript which was fundamentally as metaprogramming happy as Python, and creating a type system that matched it. Having a goal that every popular pattern in Javascript should be type-checked was a great starting choice, because they couldn't simply copy some other languages' static typing methadology and had to work from teh ground up.
No comments yet.