HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-25 个月前Why make it complicated?lemmy.mlimagemessage-square123fedilinkarrow-up1371arrow-down138file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1333arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-25 个月前message-square123fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squareHaradion@lemmy.mllinkfedilinkarrow-up2·5 个月前If type constraints later in the function let the compiler infer the type, this syntax totally works.
minus-squarenebeker@programming.devlinkfedilinkEnglisharrow-up1·5 个月前Like 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.