— Revealing module pattern?
— Yes, the best class/object creation method in js
— There is no other pattern as simple with as much functionality allowed
— It is explicit instead of implicit
— In terms of the syntax required ie private
vs manual scope restrictions
— You manually define an interface which reveals the modules you want to be public, through a publics
object or just returning a literal
Message permanent page
— For me good class syntax would trim hundreds of lines of code by not requiring that
— And it will be more familiar to new commers from java and others