|
|
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Basically, there are any number of people who say "fast is better than
>> correct" because they've never built programs where incorrectness costs
>> money or lives.
>
> Oh, garbage collection is the Holy Grail of programming which, magically,
> makes programs "correct". Yeah. ;)
No, but it solves all kinds of nasty problems, just like the speed
penalty of array bounds checking does.
>> You can't accidentally declare the function taking a float in the
>> headers and an integer in the body and have mysterious type crashes at
>> runtime in spite of your static typing.
>
> C# doesn't check at compile time that all your types match?
It does. I was speaking of C or C++. If you only have one declaration
matching a given type to a given variable, then they can't get out of sync.
Ada gives you separate headers from bodies, but you have to actually
compile the headers, and you have to compile every header before its
body, and you can't refer to a header that was compiled after yours
were, so basically the language is required to enforce that the two
don't get out of sync.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|