News for hackers. Stuff that matters.
Re:Dynamic type systems are not inherently more open by _pmf_ on Sunday January 19, 2020 @11:56AM (#22092390)
> Lets say you pass a double variable from some part of your code through 13 layers of APIs until it is actually looked at and acted upon. Now you realise that you not only need a double, but also a boolean. In dynamic typing, you can make a tuple containing both and only modifying the beginning and end points. In static typing you have to alter/refactor the type everywhere.

Adding a double and boolean field to a Context object, I don't have to touch anything at the intermediary API layers. Just as with your tuple/dict.

There are no comments on this comment yet.