> However, as mentioned earlier, JDK 8's Optional is completely and > purposefully avoiding this, and has Optional as more of a traditonal Java > class with a boolean flag. >
Not wanting to have ADT doesn't mean the design has to be this poor. A single static final, immutable NONE field + a some constructor would already be better than this. -- You received this message because you are subscribed to the Google Groups "Java Posse" group. To view this discussion on the web visit https://groups.google.com/d/msg/javaposse/-/PFZdloD9BFoJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
