Re: Essential feature: assertions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek,

I agree 100%. This is the way to do it. Eiffel (since I used it as an example)
lets you turn off all that extensive checking, once the code is debugged to your
satisfaction. For performance.

George
 
--

On Mon, 29 Jan 2001 22:40:51  
 Derek Parnell wrote:
>----- Original Message -----
>From: "George Henry" <ghenryca at LYCOS.COM>
>To: "Euphoria" <EUforum at topica.com>
>Sent: Tuesday, January 30, 2001 5:07 PM
>Subject: Essential feature: assertions
>
>
>[snip]
>
>> Euphoria can and should implement assertions in a more elegant way than C.
>All that's needed is an "assert" *keyword*, and the syntax "assert
><expression>". So one would write:
>>
>> assert id_vitalProc >= 0
>>
>
>I like this idea too. Plus something like ...
>
>  with assert  -- Evaluate any assert statements
>  without assert -- Ignore any assert statements
>
>these would enable assert processing to occur during testing/debugging and
>also to be skipped ("without assert") when running code where performance is
>critical or if installed in production.  Though I personnally would want
>assertions to execute even in production environments.
>
>------
>Derek Parnell
>Melbourne, Australia
>(Vote [1] The Cheshire Cat for Internet Mascot)
>
>
>
>____________________________________________________________
>T O P I C A  -- Learn More. Surf Less. 
>Newsletters, Tips and Discussions on Topics You Choose.
>http://www.topica.com/partner/tag01
>
>


Get your small business started at Lycos Small Business at
http://www.lycos.com/business/mail.html

____________________________________________________________
T O P I C A  -- Learn More. Surf Less. 
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu