585
With PieMixin (lemmy.world)
submitted 11 months ago by mod_pp@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] PetDinosaurs@lemmy.world 9 points 11 months ago

It looks exactly like c++ and c# and java and probably others.

[-] morhp@lemmy.wtf 17 points 11 months ago

Java only has instanceof and getClass, not typeof.

[-] Mozingo@lemmy.world 11 points 11 months ago

But neither c++ or Java have typeof

[-] FooBarrington@lemmy.world 2 points 11 months ago

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.

[-] LapidistCubed@lemmy.world 1 points 11 months ago

Probably because Java and C# take much inspiration from C++. They aren't called "C-based" languages for nothing ๐Ÿ˜‰

this post was submitted on 28 Nov 2023
585 points (97.7% liked)

Programmer Humor

32371 readers
546 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS