comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Nested declares, constant size arrays and clarity
Date: Fri, 05 Oct 2007 04:54:32 GMT
Date: 2007-10-05T04:54:32+00:00	[thread overview]
Message-ID: <csjNi.135990$Fc.32759@attbi_s21> (raw)
In-Reply-To: <fe29fv$ocg$3@atlantis.news.tpi.pl>

Mateusz Papiernik wrote:
> 
> With strings I also have to work some way. As for now I'm using 
> Unbounded_Strings, because easy implementations of functions like split 
> (I'm parsing CSV file). Is it a good practice to use U_S, or should I 
> fall back to normal strings and fight with implementation?

When you understand String, you'll find the implementation works for 
you, and you don't have to fight it. There are very few places where you 
really need a variable-length string type; most things can be done with 
String and block statements.

But there's nothing wrong with using Unbounded_String, and sometimes a 
variable-length string type can result in shorter or more readable code.

-- 
Jeff Carter
"Why, the Mayflower was full of Fireflies, and a few
horseflies, too. The Fireflies were on the upper deck,
and the horseflies were on the Fireflies."
Duck Soup
95



  parent reply	other threads:[~2007-10-05  4:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 22:58 Nested declares, constant size arrays and clarity Mateusz Papiernik
2007-10-03 23:49 ` Ludovic Brenta
2007-10-04  8:49   ` Mateusz Papiernik
2007-10-04 11:33     ` Ludovic Brenta
2007-10-04 12:45       ` Dmitry A. Kazakov
2007-10-04 13:11         ` Mateusz Papiernik
2007-10-05  5:00           ` Jeffrey R. Carter
2007-10-05  4:58         ` Jeffrey R. Carter
2007-10-05  7:38           ` Dmitry A. Kazakov
2007-10-05 17:08             ` Jeffrey R. Carter
2007-10-05  4:54     ` Jeffrey R. Carter [this message]
2007-10-04  0:20 ` Jeffrey R. Carter
2007-10-04  8:51   ` Mateusz Papiernik
2007-10-05  2:45     ` Steve Whalen
2007-10-04  0:23 ` 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