HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-211 months agoWhy make it complicated?lemmy.mlimagemessage-square124fedilinkarrow-up1367file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1367imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-211 months agomessage-square124fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squareHaradion@lemmy.mllinkfedilinkarrow-up3·11 months agoIf type constraints later in the function let the compiler infer the type, this syntax totally works.
minus-squarenebeker@programming.devlinkfedilinkEnglisharrow-up1·11 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.