4 ms·
This may be a naive question (I have very little knowledge about building languages and compilers): Would this be possible in Python by introducing a keyword li
by w-m 4y ago
This may be a naive question (I have very little knowledge about building languages and compilers): Would this be possible in Python by introducing a keyword like `final`? Any object, variable, method that is marked final just has to be looked up once by the interpreter, the re-fetching the article describes doesn't have to happen again. Trying to change a final thing results in an exception.