Sujet : Re: Nice example about the "inefficiently" of the tcl "c" api.
De : undroidwish (at) *nospam* googlemail.com (undroidwish)
Groupes : comp.lang.tclDate : 09. Sep 2024, 10:11:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbme4u$2bu0v$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
On 9/9/24 08:04, aotto1968 wrote:
...
I posted the code above just to show some simple facts:
1. Tcl has no "NULL" object → "NULL" is not even defined in Tcl
...
I'd call this a non-argument performance and otherwise given that
even the inventor of NULL regretted this his invention, see
https://en.wikipedia.org/wiki/Tony_Hoarehttps://en.wikipedia.org/wiki/Tony_Hoare
in this quote
"I call it my billion-dollar mistake. It was the invention of the null reference in 1965. At that time, I was designing the first comprehensive type system for references in an object oriented language (ALGOL W). My goal was to ensure that all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years."