programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 年前

know the features of your language

lemmy.world

message-square
146
link
fedilink
623

know the features of your language

lemmy.world

jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 年前
message-square
146
link
fedilink
  • bamboo@lemm.ee
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    1 年前

    I’m learning swift and I actually just discovered ?? today. Am I missing out in other languages?

    • qaz@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      1 年前

      C# and Kotlin both have it

    • hstde@feddit.de
      link
      fedilink
      arrow-up
      13
      ·
      1 年前

      Yes, it’s very useful when applied correctly.

      I’m always disappointed when I remember, that I can’t use such a feature, because I’m stuck using Java.

      • jape@infosec.pub
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        Maybe you’r using an older version of Java? Works fine for me.

        • hstde@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 年前

          New versions of java have a null coalescing operator?

          I didn’t know that.

          Edit: a short search didn’t return any answers, as far as I can see java doesn’t have this operator, the closest thing is the ternary if operator.

    • Psaldorn@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 年前

      PHP too

    • reboot6675@sopuli.xyz
      link
      fedilink
      arrow-up
      7
      ·
      1 年前

      JavaScript and TypeScript too

    • effward@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 年前

      C#

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: [email protected]

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.

  • 301 users / day
  • 1.91K users / week
  • 3.17K users / month
  • 9.68K users / 6 months
  • 735 local subscribers
  • 35.9K subscribers
  • 1.77K Posts
  • 38.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org