From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: how to check if a string variable contains a number or string?
Date: Tue, 19 Nov 2002 17:02:45 GMT
Date: 2002-11-19T17:02:45+00:00 [thread overview]
Message-ID: <3DDA6EE2.2010409@acm.org> (raw)
In-Reply-To: mailman.1037681222.31134.comp.lang.ada@ada.eu.org
sk wrote:
> 3) A random file
> The quick brown Fox bought 3 carrots for $0.34
>
> I would consider using exceptions to realize
> that the number and price of carrots are numeric
> amounts rather than just strings to be a bad
> technique !
Given the choice between using existing subprograms that may raise
exceptions and writing new code to do the same thing but without raising
an exception, I know of no circumstances in which the latter is an
acceptable use of resources. I limit myself to professional software
development; on a personal project you may waste your time
reimplementing the entire run-time library for all I care.
--
Jeff Carter
"It's all right, Taggart. Just a man and a horse being hung out there."
Blazing Saddles
next prev parent reply other threads:[~2002-11-19 17:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-18 20:41 how to check if a string variable contains a number or string? Sarah Thomas
2002-11-18 21:09 ` Stephen Leake
2002-11-18 21:50 ` David C. Hoos
2002-11-19 0:44 ` sk
2002-11-19 1:21 ` Jeffrey Carter
2002-11-19 4:41 ` sk
2002-11-19 17:02 ` Jeffrey Carter [this message]
2002-11-24 0:10 ` AG
2002-11-23 20:05 ` Jeffrey Carter
2002-11-19 1:26 ` Jeffrey Carter
2002-11-19 3:19 ` SteveD
2002-11-19 9:38 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox