OrcasEnjoyingYachts
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
JPDev@programming.dev to Programmer Humor@programming.dev · 3 年前

ifn't

programming.dev

message-square
127
link
fedilink
764

ifn't

programming.dev

JPDev@programming.dev to Programmer Humor@programming.dev · 3 年前
message-square
127
link
fedilink
  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 年前

    It also has a !=.

    • Lmaydev@programming.devdeleted by creator
      link
      fedilink
      arrow-up
      2
      ·
      3 年前

      Pattern matching is different.

      • Caveman@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 年前

        Yeah, I just said it since you used it with null. I used it a lot for enums

        • Lmaydev@programming.devdeleted by creator
          link
          fedilink
          arrow-up
          1
          ·
          3 年前

          The type matching is the most common thing I use it with. Combined with inline variables.

          if (x is string { Length: 5} s)
          {
              // do stuff with s
          }
          

          And switch expressions.

          As a side note inline variables are amazing haha

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 885 users / day
  • 3.85K users / week
  • 9.05K users / month
  • 20K users / 6 months
  • 1 local subscriber
  • 33.2K subscribers
  • 2.53K Posts
  • 98.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org