HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 months agoWhy make it complicated?imagemessage-square123linkfedilinkarrow-up1368arrow-down138file-text
arrow-up1330arrow-down1imageWhy make it complicated?HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 months agomessage-square123linkfedilinkfile-text
minus-squareHaradion@lemmy.mllinkfedilinkarrow-up2·2 months agoIf type constraints later in the function let the compiler infer the type, this syntax totally works.
minus-squarenebeker@programming.devlinkfedilinkEnglisharrow-up1·2 months 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.