Dispassionate@quokk.au to Programmer Humor@programming.devEnglish · 5 days agoNew ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliabledisreport.comexternal-linkmessage-square52linkfedilinkarrow-up1301
arrow-up1301external-linkNew ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliabledisreport.comDispassionate@quokk.au to Programmer Humor@programming.devEnglish · 5 days agomessage-square52linkfedilink
minus-squareHeHoXa@lemmy.ziplinkfedilinkarrow-up4·5 days agoWhat? Cmon’… Promise<T> *(okay it isn’t really a sin like any, but I wanted to wedge this into this thread somewhere)
minus-square0xDREADBEEF@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up4·4 days agomeanwhile, up above: async function foo<T=any>(): Promise<T> {
What? Cmon’…
Promise<T>
*(okay it isn’t really a sin like any, but I wanted to wedge this into this thread somewhere)
as unknown as anymeanwhile, up above:
async function foo<T=any>(): Promise<T> {