comp.lang.ada
 help / color / mirror / Atom feed
From: "Mário Amado Alves" <amado.alves@netcabo.pt>
To: <comp.lang.ada@ada-france.org>
Subject: RE: FW: Is the Writing on the Wall for Ada?
Date: Tue, 30 Sep 2003 23:00:40 +0100
Date: 2003-09-30T23:00:40+01:00	[thread overview]
Message-ID: <mailman.18.1064958744.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <slrnbnjiqj.shu.randhol+valid_for_reply_from_news@kiuk0152.chembio.ntnu.no>

> > ... Only String versions is enough.
> 
> And some thing an array of integers are enough. I thought the
> point of returning Unbounded_String was to make the Strings a 
> bit easier to handle.

*Unbounded_String* is designed for easier handling of strings, not
necessarily *functions* returning Unbounded_String. Even Unbounded.Slice
returns a String. It's a matter of pros and cons. What do extra versions
of Get_Line buy us? Only that you can write

  An_Unbounded_String := Get_Line;

instead of

  An_Unbounded_String := To_Unbounded_String (Get_Line);

Now balance this with the cons:

- longer ARM, or

- will take space from more important things;

- overloaded functions that in some contexts will produce ambiguity
(which the programmer must resolve with more code).

My impression is cons > pros, that's all.

(What is the AI for this anyway?)





  parent reply	other threads:[~2003-09-30 22:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-30 15:56 FW: Is the Writing on the Wall for Ada? Mário Amado Alves
2003-09-30 16:10 ` Preben Randhol
2003-09-30 16:21   ` Larry Kilgallen
2003-09-30 16:33     ` Preben Randhol
2003-09-30 17:10       ` Mário Amado Alves
2003-09-30 18:28         ` Preben Randhol
2003-09-30 18:30           ` Preben Randhol
2003-09-30 22:00           ` Mário Amado Alves [this message]
2003-10-01  0:16             ` Wes Groleau
2003-10-01 13:09               ` Marin David Condic
2003-10-01 13:02             ` Marin David Condic
2003-09-30 17:17       ` Larry Kilgallen
2003-09-30 17:15   ` Mário Amado Alves
2003-10-07 14:42 ` Craig Carey
2003-10-08 18:06   ` Robert I. Eachus
2003-10-09 11:53     ` Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2003-10-07 16:08 amado.alves
2003-10-08  1:33 ` Wes Groleau
replies disabled

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