[Python-Dev] Python 3 design principles

JustFillBug mozbugbox at yahoo.com.au
Fri Sep 2 11:40:09 CEST 2005

On 2005-09-01, Ron Adam <rrr at ronadam.com> wrote:
> As for functions without '()'s. (Just a thought) You could use '<<' or 
> '<<<' (or other symbol) as a way to move data between objects.
>     ui.write <<< 'Hello World/n'      #  ui.write('Hello World/n')
>     ui.writeln <<< counter            #  ui.writeln(counter.next())
>     ok = ui.input <<< 'press a key:'  # ok = ui.input('press a key:')
> The requirement could be that the item on the left is a callable, and 
> the item on the right is a sequence or generator.

Please don't abuse symbols. Perl's ways of symbols all the way without
intuitive meaning is bad. Use descriptive methods and functions please.

More information about the Python-Dev mailing list