comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Array of Unbounded_String vs Indefinite_Vectors(Natural, String)
Date: Mon, 23 Oct 2017 09:32:07 -0700 (PDT)
Date: 2017-10-23T09:32:07-07:00	[thread overview]
Message-ID: <72d8aa16-ed2c-4d17-ae18-10f0be33e81f@googlegroups.com> (raw)
In-Reply-To: <oshta6$u78$1@gioia.aioe.org>

On Sunday, October 22, 2017 at 4:52:56 AM UTC-6, Victor Porton wrote:
> Shark8 wrote:
> > 
> > Personally I like the vector option.
> 
> Why?

Because I've found it to be the most natural solution to the problem when I've had to do something similar. Though, to be fair, I /was/ storing constant words (commands [or tokens]) rather than mutable strings that could change length.

As always, consider the problem domain *first* before jumping into code -- this helps prevent you from falling into the "I have a hammer, so everything is a nail" mentality -- Ada is really quite good at modeling the problem domain for a lot of things, and we should take advantage of that.


  reply	other threads:[~2017-10-23 16:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-21 21:48 Array of Unbounded_String vs Indefinite_Vectors(Natural, String) Victor Porton
2017-10-22  0:51 ` Shark8
2017-10-22 10:52   ` Victor Porton
2017-10-23 16:32     ` Shark8 [this message]
2017-10-23 17:30       ` Jacob Sparre Andersen
2017-11-06  4:42       ` Robert Eachus
2017-10-22 12:30 ` Victor Porton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox