hypertown@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoI like Python deflemmy.worldimagemessage-square72fedilinkarrow-up1543arrow-down143
arrow-up1500arrow-down1imageI like Python deflemmy.worldhypertown@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square72fedilink
minus-squarekaesaecracker@leminal.spacelinkfedilinkEnglisharrow-up4·1 year agoThe type annotations are just fancy comments. They do not do anything at runtime. If you have a function that takes an int someone can still pass in a list or anything else.
minus-squareAnahkiasen@lemmy.blahaj.zonelinkfedilinkarrow-up2·edit-21 year agoBut will it run? I’m used to typescript where it’s not checked at runtime but you can’t “build” unsafe types I’d assume it’s the same here
minus-squareboletus@sh.itjust.workslinkfedilinkarrow-up2·1 year agoThe main advantage of typing for me is static linting.
The type annotations are just fancy comments. They do not do anything at runtime. If you have a function that takes an int someone can still pass in a list or anything else.
But will it run? I’m used to typescript where it’s not checked at runtime but you can’t “build” unsafe types I’d assume it’s the same here
The main advantage of typing for me is static linting.