585With PieMixin(lemmy.world)posted 1 year ago bydazzledbeans @lemmy.worldin programmerhumor@lemmy.mlView comments29 commentssavehidereportSort:HotTopControversialNewOldYou are viewing a single thread.View all comments View context [ +- ]PetDinosaurs@lemmy.world9 points1 year agoIt looks exactly like c++ and c# and java and probably others. permalinksavereportparentreply[ +- ]morhp@lemmy.wtf17 points1 year agoJava only has instanceof and getClass, not typeof. permalinksavereportparentreply[ +- ]mozingo@lemmy.world11 points1 year agoBut neither c++ or Java have typeof permalinksavereportparentreply[ +- ]257m@sh.itjust.works0 points1 year ago*Deleted by creatorpermalinksavereportparentreply[ +- ]sgh@lemmy.ml3 points1 year 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 points1 year 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 point1 year agoProbably because Java and C# take much inspiration from C++. They aren’t called “C-based” languages for nothing 😉 permalinksavereportparentreply