2 ms·
I'm only having a problem with default sealed classes on block level. With perl, which has similar characteristics we decided to seal classes only from the mai
by rurban 12y ago
I'm only having a problem with default sealed classes on block level.
With perl, which has similar characteristics we decided to seal classes only from the main application, with "use oo :final", and modules, libraries, implementations of classes do not seal their classes. Thus you can easily allow duck-typing in the calling application for testing, or go fast and disallow adding or changing methods and properties.
So you cannot pre-compile modules per se, but js has no static block compiler anyway.