What's the best way to minimize the need of run time checks?

Steven D'Aprano steve+python at pearwood.info
Sun Aug 14 21:45:21 EDT 2016


On Mon, 15 Aug 2016 08:45 am, Lawrence D’Oliveiro wrote:

> On Monday, August 15, 2016 at 4:31:44 AM UTC+12, BartC wrote:
> 
>> But it can't create a new record or struct type at runtime which can
>> then be accessed using normal syntax, in compiled code that already
>> existed before the record was created.
> 
> That’s an awful lot of “which ... that” qualification going on.
> 
> Remember, Python, which is supposed to be able to do all that, is
> implemented in C.


Corollary to the Fundamental Theorem of Software Engineering:

Every problem in software engineering can be solved in any language by
writing an interpreter for another language, except the problem of poor
performance.




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list