Dispassionate@quokk.au to Programmer Humor@programming.devEnglish · 1 day agoNew ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliabledisreport.comexternal-linkmessage-square50fedilinkarrow-up137
arrow-up137external-linkNew ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliabledisreport.comDispassionate@quokk.au to Programmer Humor@programming.devEnglish · 1 day agomessage-square50fedilink
minus-squareHeHoXa@lemmy.ziplinkfedilinkarrow-up4·edit-21 day 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·edit-223 hours 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> {