DEV Community

Discussion on: What Is Null? (Baby Don't Hurt Me)

Collapse
 
johannesvollmer profile image
Johannes Vollmer

Nice. Would be great to See some alternatives though :)

Collapse
 
decoeur_ profile image
Lauri Hiltunen

Do you mean comparison between how nulls work between different languages or more about the null object pattern? Well, maybe someday :)

Collapse
 
johannesvollmer profile image
Johannes Vollmer

I mean for example the Option/Optional type as in Rust or Java. Also, Kotlin has an interesting null approach :)

Thread Thread
 
decoeur_ profile image
Lauri Hiltunen

Indeed, after I posted this I realised that I had left out the Optional class and how to use it. Although when talking about null, I think it would've been a footnote like mentioning the null object pattern was. Those things could be worthy of a blog post of their own, don't you think?

Thread Thread
 
johannesvollmer profile image
Johannes Vollmer

Haha, if you don't hurry I may be tempted to write something about null alternatives myself :)