Wouldn't a refinement, preferably with a short name, be a "safer" solution?

Peter

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Carl
Sent: 17 December 2004 04:01
To: [EMAIL PROTECTED]
Subject: [REBOL] head reverse annoys me


I'm not sure if anyone has been annoyed by REVERSE returning the tail
position. I know I have. Everywhere I see REVERSE used like this: ... head
reverse foo.

It's my fault. I defined REVERSE like this for the same reason I defined
INSERT and other series functions to do the same: to not lose "information"
(in other words to preserve the ending location). But, that feature is
rarely, if ever, used (in REVERSE that is).

I'm inclined to change it to return the starting location, but I thought it
might be good to discuss this openly. Will such a change break existing
code?
It could, if anyone uses the result of REVERSE. But, that would surprise me.
I've never used it in "millions" of lines of code. (That's like dog years.)

It's a small thing, but I don't like new users to get annoyed with stuff
like this.

"Say the word, and it will be done by sundown today."

-Carl

--
To unsubscribe from the list, just send an email to rebol-request at
rebol.com with unsubscribe as the subject.



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.813 / Virus Database: 553 - Release Date: 13/12/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.813 / Virus Database: 553 - Release Date: 13/12/2004
 

-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to