Discussion on boilerplate for code tightly bound to OOP

Kevin Bourrillion kevinb at google.com
Thu May 12 15:41:33 UTC 2022


Tangent

On Thu, May 12, 2022 at 6:16 AM Julian Waters <tanksherman27 at gmail.com>
wrote:

Granted, it would be interesting to
> see them being added as a full-on language feature though (I'm unsure if
> people using enums as singletons nowadays is encouraged or not).
>

(Is there controversy here? What is a singleton if not an enumerated type
where N == 1? I don't think we're using enums "as" singletons, they just
*are* singletons until you add a second constant.)

-- 
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com


More information about the amber-dev mailing list