From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.175.154 with SMTP id p26mr10267070ioo.87.1508776327990; Mon, 23 Oct 2017 09:32:07 -0700 (PDT) X-Received: by 10.157.41.135 with SMTP id n7mr501493otb.5.1508776327956; Mon, 23 Oct 2017 09:32:07 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.alt.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!k70no4239018itk.0!news-out.google.com!u132ni4885ita.0!nntp.google.com!l196no4230349itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 23 Oct 2017 09:32:07 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=155.148.6.150; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 155.148.6.150 References: <9588f435-6437-458d-9a3a-468fc96e0865@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <72d8aa16-ed2c-4d17-ae18-10f0be33e81f@googlegroups.com> Subject: Re: Array of Unbounded_String vs Indefinite_Vectors(Natural, String) From: Shark8 Injection-Date: Mon, 23 Oct 2017 16:32:07 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:48575 Date: 2017-10-23T09:32:07-07:00 List-Id: On Sunday, October 22, 2017 at 4:52:56 AM UTC-6, Victor Porton wrote: > Shark8 wrote: > >=20 > > Personally I like the vector option. >=20 > 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 consta= nt words (commands [or tokens]) rather than mutable strings that could chan= ge 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 everythin= g 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.