Feddit.dk
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
dazzledbeans @lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

With PieMixin

lemmy.world

message-square
29
link
fedilink
581

With PieMixin

lemmy.world

dazzledbeans @lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
29
link
fedilink
  • PetDinosaurs@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    4
    ·
    2 years ago

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

    • morhp@lemmy.wtf
      link
      fedilink
      arrow-up
      17
      ·
      2 years ago

      Java only has instanceof and getClass, not typeof.

    • mozingo@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      2 years ago

      But neither c++ or Java have typeof

      • 257m@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        2 years ago

        deleted by creator

        • sgh@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          2 years ago

          Standard C does not have typeof. That’s just a compiler extension…

          Also the equivalent of typeof is most likely decltype or auto.

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years 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
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 years ago

      Probably because Java and C# take much inspiration from C++. They aren’t called “C-based” languages for nothing 😉

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 408 users / day
  • 656 users / week
  • 2.74K users / month
  • 9.11K users / 6 months
  • 75 local subscribers
  • 36.5K subscribers
  • 1.46K Posts
  • 33.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org