rewe-digital / composer

Dynamically composes markup generated by microservices. Based on Java8, reactive patterns and Spotify Apollo. Made with 💙 in cologne.
Apache License 2.0
10 stars 2 forks source link

How strictly do we want to avoid null in our code? #29

Open thovid opened 6 years ago

thovid commented 6 years ago

Picking up a discussion from the last pull-request: How strictly do we want to avoid null? One way of doing things would be to always treat null as an error; so all optional things should be an Optional. But some APIs might return null requiring us to constantly wrap things into Optional. Also, inside some class or method null is probably fine...