5
llijaz
242d

null pointer exceptions shouldn't be possible in the first place

Comments
  • 5
    Swift, Kotlin and Rust were built on this idea.
  • 2
    Not nullable/optional, no unwrap.
  • 5
    And -1 should not represent an invalid index. If you don't always have a value, you shouldn't always return the type.
  • 4
    what's possible and what's happening is usually the difference between theory and practice
  • 1
    As someone who knows a big empty patter project. I highly disagree.

    Having an application do random garbage instead of crashin isn't always great. Defining an empty atate isn't always easy.
  • 2
    well - they aren't if you don't write shitty code.
  • 0
    Frankly, I really really don't mind them
Add Comment