Shouldn't the title be "with static typing?"
Python has strong types. It's just that it checks them at runtime, not before.
If you don't use MyPy or similar, anyway.
Python has strong types. It's just that it checks them at runtime, not before.
If you don't use MyPy or similar, anyway.
Common Lisp allows for type inference and some compilers use that to various degree, as well as to declare a type of a given symbol (or the signature of a function). Depending on compiler and optimization settings, that information is then used to generate optimized code, much like a compiler for a (weakly) statically typed language would or detect mismatches. SBCL is probably one of the most advanced Common Lisp compilers in this regard.
class Testing123:
def __init__(self):
self.blah = whatever()