Hi Gregor,

Here are my reactions, for whatever they're worth:

Gregor Lingl wrote:
> Question nr. 1:
> Is this inutitively ok or would you
> prefer the converse. (e.g. clear(1) to
> delete the last item, clear(-1) the first one?)
> 
> In a discussion with a friend about that topic
> there occurred the idea to have (additionally?)
> two names for those functions each with
> positive arguments only. (A bit similar to
> the solution for fill()). He proposed:
> 
> clearfirst(n)
> clearlast(n)

As a programmer I like the positive and negative parameters, but as a 
teacher I much prefer the clearfirst/clearlast idea.

> 
> Another idea was:
> 
> clearhead(n)  for, ..., yeah, for what?
>                what's the head in a sequence of lines
>                the ones drawn at last?
> cleartail(n)

This is only appealing for Unix/Linux admins ;) - the head/tail thing 
would confuse my students.

> Question nr2:
> I don't know how this sounds for native english
> speaking people. Perhaps you have better proposals
> for naming these functions.

IMHO "clear" is exactly the right word to use, and clearfirst and 
clearlast are, well, "perfectly clear". ;)

Cheers,
Vern

-- 
This time for sure!
    -Bullwinkle J. Moose
-----------------------------
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
[EMAIL PROTECTED]; 260-436-0746; FAX: 260-436-5137

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"edupython" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/edupython
-~----------~----~----~----~------~----~------~--~---

Reply via email to