HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-21 month agoWhy make it complicated?lemmy.mlimagemessage-square123fedilinkarrow-up1370arrow-down138file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1332arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-21 month agomessage-square123fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squareHaradion@lemmy.mllinkfedilinkarrow-up2·1 month agoIf type constraints later in the function let the compiler infer the type, this syntax totally works.
minus-squarenebeker@programming.devlinkfedilinkEnglisharrow-up1·1 month 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.