Futurology Today
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

know the features of your language

lemmy.world

message-square
145
link
fedilink
623

know the features of your language

lemmy.world

jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
145
link
fedilink
  • 𝕱𝖎𝖗𝖊𝖜𝖎𝖙𝖈𝖍@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    1 year ago

    Typescript/Javascript too

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      edit-2
      1 year ago

      Not strictly equivalent, since || tests for truthiness, not just null.

      • 𝕱𝖎𝖗𝖊𝖜𝖎𝖙𝖈𝖍@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        1 year ago

        That’s fair, but it’s close enough that it functions identically

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          Only for the null case. For other cases it doesn’t function identically, since it also treats "", 0 and undefined the same as null.

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.

  • 138 users / day
  • 880 users / week
  • 1.81K users / month
  • 10.3K users / 6 months
  • 9 local subscribers
  • 35.6K subscribers
  • 1.49K Posts
  • 22.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org