HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-210 days agoWhy make it complicated?lemmy.mlimagemessage-square122linkfedilinkarrow-up1368arrow-down139file-textcross-posted to: [email protected]
arrow-up1329arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-210 days agomessage-square122linkfedilinkfile-textcross-posted to: [email protected]
minus-squareHaradion@lemmy.mllinkfedilinkarrow-up2·3 days agoIf type constraints later in the function let the compiler infer the type, this syntax totally works.
minus-squarenebeker@programming.devlinkfedilinkEnglisharrow-up1·3 days agoLike if the variable is then used in a function that only takes one type? Huh.
If type constraints later in the function let the compiler infer the type, this syntax totally works.
Like if the variable is then used in a function that only takes one type? Huh.