Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. No, Swift doesn't solve the null reference problem

No, Swift doesn't solve the null reference problem

Scheduled Pinned Locked Moved The Insider News
swiftcomhelpannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Christopher Shields
    wrote on last edited by
    #1

    GitHub[^]

    There's been a lot of hype surrounding Apple's Swift language since its release. Some have claimed that, thanks to its support for optional types, it solves the null reference problem, Tony Hoare's "billion-dollar mistake". But that's not quite true. Let's see why.

    Maybe Swift isn't that almighty, infallible incarnation of Objective-C everyone is heralding it as.

    B 1 Reply Last reply
    0
    • C Christopher Shields

      GitHub[^]

      There's been a lot of hype surrounding Apple's Swift language since its release. Some have claimed that, thanks to its support for optional types, it solves the null reference problem, Tony Hoare's "billion-dollar mistake". But that's not quite true. Let's see why.

      Maybe Swift isn't that almighty, infallible incarnation of Objective-C everyone is heralding it as.

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      By trying to solve the problem of negligence (and a NullReferenceException is typically caused by some kind of negligence somewhere), it will only cause more negligence.

      P 1 Reply Last reply
      0
      • B Bernhard Hiller

        By trying to solve the problem of negligence (and a NullReferenceException is typically caused by some kind of negligence somewhere), it will only cause more negligence.

        P Offline
        P Offline
        phil o
        wrote on last edited by
        #3

        I agree, the NullReferenceException is not the problem, it's the symptom.

        There are two kinds of people in the world: those who separate humankind in two distinct categories, and those who don't. "I have two hobbies: breasts." DSK

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups