From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Pondering what rationale behind record type
Date: Thu, 19 May 2011 10:12:04 +0200
Date: 2011-05-19T10:12:05+02:00 [thread overview]
Message-ID: <xvucnfbk1g2p.4jgpmlm1u1hu.dlg@40tude.net> (raw)
In-Reply-To: 8992c749-fae9-44cb-be6e-d3f8a592ee1a@v8g2000yqb.googlegroups.com
On Wed, 18 May 2011 15:55:03 -0700 (PDT), Shark8 wrote:
> One of the reasons that I'm forced to use if-statements in the cases for
> the various constructs is because some of them are dependent on state:
> Strings, for example are delimited with parentheses, BUT may contain
> balanced pairs or be escaped out.
>
> So, (Here we are (nowhere).) is equal to the Ada String "Here we are
> (nowhere)."
> A quick/easy "go to the next closing paren" will produce incorrect
> results,
> just as it would in the string (:/)) which is equal the Ada String
> ":)".
I see, I likely would do this differently as well. Either brackets are
parts of an expression to be evaluated later or a part of a literal
expression handled by a recursively descend part (i.e. in a physically
different case-statement).
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2011-05-19 8:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-09 17:47 Pondering what rationale behind record type Anh Vo
2011-05-09 18:59 ` Adam Beneschan
2011-05-09 19:51 ` Niklas Holsti
2011-05-09 20:02 ` Dmitry A. Kazakov
2011-05-09 20:12 ` Anh Vo
2011-05-09 22:03 ` Georg Bauhaus
2011-05-10 7:45 ` Dmitry A. Kazakov
2011-05-10 10:12 ` Georg Bauhaus
2011-05-10 12:08 ` Dmitry A. Kazakov
2011-05-10 12:18 ` Georg Bauhaus
2011-05-10 12:50 ` Dmitry A. Kazakov
2011-05-10 14:20 ` Martin
2011-05-11 7:32 ` Dmitry A. Kazakov
2011-05-11 2:28 ` Shark8
2011-05-11 7:32 ` Dmitry A. Kazakov
2011-05-18 22:55 ` Shark8
2011-05-19 8:12 ` Dmitry A. Kazakov [this message]
2011-05-09 20:49 ` Randy Brukardt
2011-05-19 9:50 ` J-P. Rosen
2011-05-20 6:10 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox