Please vote once and for good: range operations
Derek Parnell
derek at psych.ward
Thu Jan 29 00:28:31 PST 2009
On Wed, 28 Jan 2009 16:26:17 -0800, Andrei Alexandrescu wrote:
> So please let's vote once and for all.
Before doing so, can I ask for a clarification, naming what *exactly* are
we voting for? I know we are talking about the /names/ of things but what
are the things we are naming here? (I assume we are only talking ranges
here BTW)
Do they include ...
(A) The first element
(B) The last element
(C) The leftmost set of elements that excludes the last element?
(D) The rightmost set of elements that excludes the first element?
(E) The set of elements that excludes both the first and last element.
(F) The /current/ element (assuming some sort of 'cursor' concept).
(G) The action of adjusting a range so that next (A) returns the element
that immediately follows the current (A) element.
(H) The action of adjusting a range so that next (B) returns the element
that immediately precedes the current (B) element.
My preferences are ...
(A) first
(B) last
(C) firstpart
(D) lastpart
(E) midpart
(F) current
(G) dropfirst
(H) droplast
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list