584With PieMixin(lemmy.world)posted 10 months ago bydazzledbeans @lemmy.worldin programmerhumor@lemmy.mlView comments29 commentssavehidereportSort:HotTopControversialNewOldYou are viewing a single thread.View all comments View context [ +- ]PetDinosaurs@lemmy.world9 points10 months agoIt looks exactly like c++ and c# and java and probably others. permalinksavereportparentreply[ +- ]morhp@lemmy.wtf17 points10 months agoJava only has instanceof and getClass, not typeof. permalinksavereportparentreply[ +- ]mozingo@lemmy.world11 points10 months agoBut neither c++ or Java have typeof permalinksavereportparentreply[ +- ]257m@sh.itjust.works0 points10 months ago*Deleted by creatorpermalinksavereportparentreply[ +- ]sgh@lemmy.ml3 points10 months ago*Standard C does not have typeof. That’s just a compiler extension… Also the equivalent of typeof is most likely decltype or auto. permalinksavereportparentreply[ +- ]FooBarrington@lemmy.world2 points10 months 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. permalinksavereportparentreply[ +- ]LapidistCubed@lemmy.world1 point10 months agoProbably because Java and C# take much inspiration from C++. They aren’t called “C-based” languages for nothing 😉 permalinksavereportparentreply