News for hackers. Stuff that matters.
Re:The state of type hints in Python by logicchains on Wednesday June 20, 2018 @11:50PM (#17362001)
>Strictly statically typed languages preclude the option of going dynamic.

No they don't; even in C it's possible to just type everything as void*, and everything as Object in Java. Just nobody does this 'cos it introduces a bunch of unnecessary runtime errors.

Re:The state of type hints in Python by yorwba on Thursday June 21, 2018 @12:56AM (#17362263)
To call a method on a void* or a Java Object you first have to explicitly cast it to a type that has that method, which means that you need to declare a common interface and have each object explicitly implement that interface. Duck typing in dynamic languages doesn't require that level of ceremony.