[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02715] Re: Append alias for Array.append?

From: Dave Thomas <Dave@...>
Date: 2000-05-10 17:36:26 UTC
List: ruby-talk #2715
Hugh Sasse Staff Elec Eng <hgs@dmu.ac.uk> writes:

> But prepend means append to the beginning.  It does not undo an append.
> "unappend" is getting a bit long...

I'm not sure I should be weighing in here, but I really don't like
this idea of building all these aliases into the language,
particularly when the language already provides facilities to allow
users to add their own aliases.

Rather than having <<, push, append, tackOnTheEnd, enQueue, and all
the rest, why not have just one (say <<) and then distribute a
standard set of personality modules which set up aliases:

   include StackLikeArrays -   adds push and pop
   include PythonNames

etc


That way we wouldn't bulk up the core language, and we'd also show
people how to add their own personality modules too.

  include Nederlandse

  arr.druk "dingetje"     (OK - it's been a long time, and I suspect
                           drukken is the wrong word, but you get the
                           idea).



Dave (with a finger in the dike, holding back the flood of new names)



In This Thread