Re: ADA Popularity Discussion Request
From: Georg Bauhaus (sb463ba_at_l1-hrz.uni-duisburg.de)
Date: 09/08/04
- Next message: Dmitry A. Kazakov: "Re: ADA Popularity Discussion Request"
- Previous message: Kelvin_K: "Reverse Engineering"
- In reply to: jayessay: "Re: ADA Popularity Discussion Request"
- Next in thread: jayessay: "Re: ADA Popularity Discussion Request"
- Reply: jayessay: "Re: ADA Popularity Discussion Request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Sep 2004 10:40:47 +0000 (UTC)
jayessay <nospam@foo.com> wrote:
: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de> writes:
:> Sure it is insufficient. But it adds value by removing the need to
:> test what the compiler has already found out. How about typos?
:
: True. But since this is determined anyway as part of incremental
: development it doesn't actually save anything in practice. Typos are
: a good example.
:
:
:> Here is a fake:
:>
:> (defun next (n) (1 + n))
:> (defun hext (n) (1 + (mod n 16)))
:
: Let's see this in practice:
[lengthy testing snipped]
Do you see what I mean? ;-) ;-) ;-) Wouldn't have happend with
proper typing and static type checks, see below.
: What you are saying is, range types (as in Ada) could have caught
: this. True, but they would not have caught it quicker (or even as
: quick) as this did.
No, I'm saying that this error can occur in an executing piece
of program if and only if the compiler allows me to mix
operations of an integer type and operations a modular type
without notice.
Things like this don't happen if you get the types right at
compiletime. Similarly, physical units can be checked at compile
time using C++ templates. Is there a set of Lisp macros that
guarantees unit safe computations before a program runs?
: Also, they wouldn't have caught the error in hext
: until you ran it anyway.
Not true as explained above.
-- Georg
- Next message: Dmitry A. Kazakov: "Re: ADA Popularity Discussion Request"
- Previous message: Kelvin_K: "Reverse Engineering"
- In reply to: jayessay: "Re: ADA Popularity Discussion Request"
- Next in thread: jayessay: "Re: ADA Popularity Discussion Request"
- Reply: jayessay: "Re: ADA Popularity Discussion Request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|