LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 2 months agoAnon tries programming in Javalemmy.worldexternal-linkmessage-square228fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 2 months agomessage-square228fedilink
minus-squareBlue_Morpho@lemmy.worldlinkfedilinkarrow-up0·2 months ago nullpointerexception is more likely the developper’s fault Of course it was the developer’s fault. But it’s absurd a language without pointers throws an error about pointers.
minus-squareLysergid@lemmy.mllinkfedilinkarrow-up0·2 months agoI guess naming it NullReferenceException will revolutionize industry
minus-squareBlue_Morpho@lemmy.worldlinkfedilinkarrow-up0·2 months agoHaving error messages that match the language is actually helpful. A reference and a pointer aren’t exactly the same. Like if Rust output “invalid word size” on a type mismatch.
Of course it was the developer’s fault. But it’s absurd a language without pointers throws an error about pointers.
I guess naming it NullReferenceException will revolutionize industry
Having error messages that match the language is actually helpful. A reference and a pointer aren’t exactly the same.
Like if Rust output “invalid word size” on a type mismatch.