Regarding the proposed range operator(s)

1 view
Skip to first unread message

Andreas Ravnestad

unread,
Aug 29, 2008, 10:45:45 AM8/29/08
to sleep-de...@googlegroups.com
I tried to add this as a comment to the tracker, but it keeps telling
me I'm not human :( So I'll post this idea here instead (and
investigate my humanity later):

The context is this RFE:
http://sleep.dashnine.org/suckit/view.html?id=1219979059885

One possibility is to use the keyword "to" as ranges of values, and ..
as ranges of indices for sublists.

Example:

@a = 1 to 10;
@b = @a[3 .. 6]; // identical to @b = sublist(@a, 3, 6);

Personally I think that looks pretty neat. I think ruby or some other
trendy language has that too?

-Andreas

Raphael Mudge

unread,
Aug 29, 2008, 11:02:47 AM8/29/08
to sleep-de...@googlegroups.com
Small bug in the server that I recently introduced to deal with
polishmywriting.com holding onto memory. Haha... :) Time to whip
out JProfiler.
Reply all
Reply to author
Forward
0 new messages