4 ms·
Since it's been found that the types in mature dynamic language programs are mostly static after a certain point anyways, why not add optional typing and empiri
by stcredzero 16y ago
Since it's been found that the types in mature dynamic language programs are mostly static after a certain point anyways, why not add optional typing and empirically determine the types at runtime using the same tracing technology tracing JIT VMs use?
This would give one the best of both worlds: fast prototyping for initial development, and type safety, added information when refactoring, and additional optimization when the code is mature.
- gcr 16y agoOh, interesting idea. Sorta like how common lisp does it?
- stcredzero 16y agoWell, of course Lisp is already doing it!
- DrJosiah 16y agoThat is sort of the implication with some of the optional type annotations included in Python 3.1 and beyond, fyi.