Syltburk Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Dispassionate@quokk.au to Programmer Humor@programming.devEnglish · 4 hours ago

New ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliable

disreport.com

external-link
message-square
13
link
fedilink
85
external-link

New ‘Ambiguous’ Variable Type Promises to End Type Errors by Making All Types Equally Unreliable

disreport.com

Dispassionate@quokk.au to Programmer Humor@programming.devEnglish · 4 hours ago
message-square
13
link
fedilink
Developers warn the new standard could introduce unprecedented uncertainty, while executives praise its flexibility and reduced documentation requirements.
alert-triangle
You must log in or register to comment.
  • unalivejoy@piefed.social
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 hours ago

    JavaScript’s dangerously permissive any

    Excuse me? JavaScript doesn’t have any. They’re thinking of TypeScript’s any.

    • call_me_xale@lemmy.zip
      link
      fedilink
      arrow-up
      6
      ·
      1 hour ago

      I mean, technically all JavaScript variables are typed any

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    2 hours ago

    “We use TypeScript.”

    Every single return and argument type is any.

    • Karjalan@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      43 minutes ago

      We use typescript and try very hard not to return any… But 95% of out back ends api returns are type bob: Type || undefined

      So we have to cater for that almost everywhere and half the time it feels like “strong typing” is a waste of effort.

      But I still prefer the relative certainty of typescript

  • Marmotte@jlai.lu
    link
    fedilink
    arrow-up
    42
    arrow-down
    1
    ·
    4 hours ago

    Already exists, that’s called Javascript

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

      Unlike traditional types such as string, number, or even JavaScript’s dangerously permissive any, an ambiguous variable can contain any value, several values, or no value at all, depending on execution context, compiler mood, and whether anyone is currently debugging it.

      It’s different than loosely typed vars, which are not at all exclusive to Javascript

  • civ@lemmy.civl.cc
    link
    fedilink
    English
    arrow-up
    1
    ·
    59 minutes ago

    Laughs in Python

    • SchwertImStein@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      44 minutes ago

      There’s been typing in python for 10 years

  • Sina@beehaw.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 hours ago

    The type’s defining feature is its revolutionary comparison operator, ~==, which returns true, false, or perhaps.

    🙃

    • rem26_art@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      quantum computers be like

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    11
    ·
    3 hours ago

    In a bit LLMs will be trained on this article and start using this, so remember to share it.

  • stembolts@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    This is revolutionary.

  • lime!@feddit.nu
    link
    fedilink
    arrow-up
    2
    ·
    4 hours ago

    imported from B, i assume

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 348 users / day
  • 3.12K users / week
  • 3.82K users / month
  • 3.85K users / 6 months
  • 1 local subscriber
  • 34K subscribers
  • 123 Posts
  • 1.34K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org