Christian Heimes wrote:
> Bill Janssen wrote:
> > Not bad, but if you're going that route, I think I'd get rid of the
> > optional arguments, and just say
> > 
> >     seek_from_beginning(INCR: int)
> > 
> >     seek_from_current(INCR: int)
> > 
> >     seek_from_end(DECR: int)
>
> I don't like it. It's too noisy and too much to type.

Well, it would be noisy, and the complaint about length would apply,
if these were widely used many times in one piece of code, but they
aren't.  So that doesn't matter, and in its favor, it's clear,
consistent, and easy to remember.

Bill



_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to