3 ms·
Static typing is not only about declaring your arguments and variables as simple types (int, float, array of ints etc). It means having a distinct type for any
by necovek 4y ago
Static typing is not only about declaring your arguments and variables as simple types (int, float, array of ints etc).
It means having a distinct type for any complex structure you pass around (think pre-normalization API params, post-normalization API params, slightly enriched post-processing data as separate type vs a dict of str to anything in Python), or anything you want to make compatible (think interfaces vs duck typing).