>> That said, there are some valid use-cases for it... I guess? > Encapsulation? Stability of interfaces? Better readability? The use case is > more about code quality and expressiveness rather than adding a new > capability to the language.
The two most interesting use cases I see are (for all my other privacy needs I use naming conventions, but there are people who don’t like that): - Avoid name clashes (e.g. when mixing in a trait, but also when doing subtyping). - Enable special functionality. You could also use a naming convention here, but using a name object is nicer. -- Dr. Axel Rauschmayer a...@rauschma.de home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss