HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-28 days agoWhy make it complicated?lemmy.mlimagemessage-square122fedilinkarrow-up1363arrow-down139file-text
arrow-up1324arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-28 days agomessage-square122fedilinkfile-text
minus-squareHaradion@lemmy.mllinkfedilinkarrow-up2·2 days agoIf type constraints later in the function let the compiler infer the type, this syntax totally works.
minus-squarenebeker@programming.devlinkfedilinkEnglisharrow-up1·1 day 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.