News for hackers. Stuff that matters.
Re:Kotlin: The Problem with null by masklinn on Saturday January 13, 2018 @06:40AM (#16139205)
null pointers can be encoded as an option type[0] (that's basically what languages like Swift or Rust do, they eschew nullable pointers and wrap non-nullable pointers in an option type instead), but they are not because

1. you don't have the attending type-safety of knowing that some pointers can't be null

2. the compiler requiring checking for nullity before every pointer access would be horrendously unwieldy

[0] which can then be compiled back to a regular nullable pointer at runtime

There are no comments on this comment yet.