[REBOL] head reverse annoys me
From: carl::rebol::net at: 16-Dec-2004 12:01
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
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
Say the word, and it will be done by sundown today.