Inferring interfaces in statically typed languages based on object shape
bitbytebit.substack.com
Dynamically typed languages such as JavaScript allow for implicit interface definitions based on object shape. If you have a Country object and a State object which both have a capital attribute, you don’t need to explicitly declare the classes using
Inferring interfaces in statically typed languages based on object shape
Inferring interfaces in statically typed…
Inferring interfaces in statically typed languages based on object shape
Dynamically typed languages such as JavaScript allow for implicit interface definitions based on object shape. If you have a Country object and a State object which both have a capital attribute, you don’t need to explicitly declare the classes using