Python syntax in Lisp and Scheme

Tomasz Zielonka t.zielonka at students.mimuw.edu.pl
Fri Oct 3 05:14:50 EDT 2003


Jeremy Yallop wrote:
>> PS. Haskell also allows to use {, } and ; instead of indentation. I
>>     wonder why Python doesn't.
> 
> http://groups.google.com/groups?as_umsgid=199803092142.QAA04377%40fermi.eeel.nist.gov

A state of the art sophisticated parser? :)))

You almost got me. I don't know very much about Python and I had to
check that # is a beginning of a comment.

Do you know the meaning of 'instead of' ?

You still have to use indentation, right? You can't write:

    if 1: #{ print 2 #} else: #{ print 3 #}

instead of

    if 1: #{
	print 2
    #}	
    else: #{ 
	print 3
    #}

because that would be read as

    if 1:

> Jeremy.

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links




More information about the Python-list mailing list