Dispassionate@quokk.au to Programmer Humor@programming.devEnglish · 3 days agoNew ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliabledisreport.comexternal-linkmessage-square52fedilinkarrow-up1265arrow-down13
arrow-up1262arrow-down1external-linkNew ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliabledisreport.comDispassionate@quokk.au to Programmer Humor@programming.devEnglish · 3 days agomessage-square52fedilink
minus-squareunalivejoy@piefed.sociallinkfedilinkEnglisharrow-up45·3 days ago JavaScript’s dangerously permissive any Excuse me? JavaScript doesn’t have any. They’re thinking of TypeScript’s any.
minus-squarecall_me_xale@lemmy.ziplinkfedilinkarrow-up38·3 days agoI mean, technically all JavaScript variables are typed any
minus-square0xDREADBEEF@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up13arrow-down1·3 days agoyou are forgetting the [object Object] type
minus-squareDispassionate@quokk.auOPlinkfedilinkEnglisharrow-up3·2 days agoHave you heard of the new [objective Object] it’s an impartial
minus-squareDangerNooble@lemmy.worldlinkfedilinkarrow-up13·3 days agoIf you’re ever feeling a little mischievous, that’s also great placeholder text to hide in language files
minus-squareunalivejoy@piefed.sociallinkfedilinkEnglisharrow-up2·3 days agoThey’re typed as any only when you use typescript.
Excuse me? JavaScript doesn’t have
any. They’re thinking of TypeScript’sany.I mean, technically all JavaScript variables are typed
anyyou are forgetting the
[object Object]typeHave you heard of the new
[objective Object]it’s an impartialIf you’re ever feeling a little mischievous, that’s also great placeholder text to hide in language files
They’re typed as any only when you use typescript.