dazzledbeans @lemmy.world to Programmer Humor@lemmy.ml · 2 years agoWith PieMixinlemmy.worldimagemessage-square29linkfedilinkarrow-up1594arrow-down113
arrow-up1581arrow-down1imageWith PieMixinlemmy.worlddazzledbeans @lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square29linkfedilink
minus-squarePetDinosaurs@lemmy.worldlinkfedilinkarrow-up13arrow-down4·2 years agoIt looks exactly like c++ and c# and java and probably others.
minus-squaremorhp@lemmy.wtflinkfedilinkarrow-up17·2 years agoJava only has instanceof and getClass, not typeof.
minus-squaremozingo@lemmy.worldlinkfedilinkEnglisharrow-up12arrow-down1·2 years agoBut neither c++ or Java have typeof
minus-squaresgh@lemmy.mllinkfedilinkarrow-up3·edit-22 years agoStandard C does not have typeof. That’s just a compiler extension… Also the equivalent of typeof is most likely decltype or auto.
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up2·2 years agoTypescript! Though it’s less useful, since the Typescript types aren’t available at runtime, so you’ll just get object for non-primitive values.
minus-squareLapidistCubed@lemmy.worldlinkfedilinkarrow-up2arrow-down1·2 years agoProbably because Java and C# take much inspiration from C++. They aren’t called “C-based” languages for nothing 😉
It looks exactly like c++ and c# and java and probably others.
Java only has
instanceof
andgetClass
, not typeof.But neither c++ or Java have typeof
deleted by creator
Standard C does not have typeof. That’s just a compiler extension…
Also the equivalent of typeof is most likely decltype or auto.
Typescript! Though it’s less useful, since the Typescript types aren’t available at runtime, so you’ll just get
object
for non-primitive values.Probably because Java and C# take much inspiration from C++. They aren’t called “C-based” languages for nothing 😉