Question mark in variable and function names

Andrew Dalke adalke at
Fri Oct 8 00:05:28 CEST 2004

Ville Vainio wrote:
> Abundant ! and ? characters in functions are a good reason to *avoid*
> Scheme. All that shift-pressing and noisy code doesn't suit my
> aesthetic sensibilities.

> mystruct.sortD()   # destructive
> if symbolP(obj): ...       # predicate

But that means pressing the shift key for the 'D', '(', ')'
and 'P' characters.  You answer doesn't address your first

Do you prefer Ruby's parens free call syntax?  Or is it
that from practice you no longer consider '(', ')' and ':'
to be noisy?

def symbolP x
   return x>0

if symbolP 5 then
   print "Positive!\n"

   contains less noise than

def symbolP(x):
   return x > 0

if symbolP(5):
   print "Positive!"

				dalke at

More information about the Python-list mailing list