2 ms·
Wait. Isn't that already solved in Java? Optional, Mono, Flux, etc. I remember being able to deal with object streams with it quite comfortably.
by alganet 2y ago
Wait. Isn't that already solved in Java? Optional, Mono, Flux, etc.
I remember being able to deal with object streams with it quite comfortably.
- jmyeet 2y agoAny function that can return an object in Java can return a null. Nullability not being part of the type system I think is a design fail.
- alganet 2y agoYeah, so the null checks become annoying if you use only language fundamentals. Java has a culture of having a layer above fundamentals. We're past all that already. I am discussing the ergonomics of their null checking APIs, particularly in the context of pipelining (or streaming, in the Java world). I find them quite comfortable.