LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 1 day agoAnon tries programming in Javalemmy.worldimagemessage-square201fedilinkarrow-up1727arrow-down129
arrow-up1698arrow-down1imageAnon tries programming in Javalemmy.worldLiamTheBox@lemmy.world to Greentext@sh.itjust.works · 1 day agomessage-square201fedilink
minus-squarenavi@lemmy.tespia.orglinkfedilinkarrow-up71·20 hours agoI always loved that Java has a NullPointerException but doesn’t have the concept of pointers in the language (only references).
minus-squarestarman@programming.devlinkfedilinkEnglisharrow-up15·15 hours agoC# has NullReferenceException and it actually makes sense.
minus-squaredukatos@lemm.eelinkfedilinkEnglisharrow-up37·19 hours agoThat is because they planed to add pointers and then gave up.
minus-squaremorrowind@lemmy.mllinkfedilinkarrow-up13·14 hours agoI mean… they have them. And unsafe. You’re just not supposed to use them
minus-squareRogueBanana@lemmy.ziplinkfedilinkEnglisharrow-up25·17 hours agoI can’t tell if you are making a joke but I can believe it could happen if it’s Java
I always loved that Java has a NullPointerException but doesn’t have the concept of pointers in the language (only references).
C# has
NullReferenceException
and it actually makes sense.That is because they planed to add pointers and then gave up.
I mean… they have them. And
unsafe
. You’re just not supposed to use themI can’t tell if you are making a joke but I can believe it could happen if it’s Java