Dynamic class default (was Re: Class method addition...)

P T Withington ptw at pobox.com
Sun Apr 20 05:01:05 PDT 2008

On 2008-04-07, at 12:25 EDT, Lars Hansen wrote:
> But there is a mixture of constrained and unconstrained
> defaults in our current choices

FWIW, Dylan used only sealed/open for classes and methods and had the  
interesting default that classes and methods were open within a module  
(the equivalent of a package, if we still have them) but sealed  
outside the module unless explicitly declared otherwise.  To put it in  
implementation terms, you don't burden the programmer with annotating  
code that the compiler can clearly analyze to determine intent, but  
you also let the complier make optimizations that would be painful or  
impossible to make in a linker.

More information about the Es4-discuss mailing list