On Thu, Oct 30, 2008 at 9:22 AM, Kang Ghee Keong <[EMAIL PROTECTED]> wrote:
> I thought the attractive part of Python has always been the whitespace!

Actually not just whitespace. Python has OOP (and a pretty clean one at
that), Perl...

> Teaches everyone to respect indentation in programming.  Aids readability,
> eh?
>
> But I'm a Java, C++, PHP, Ruby type of guy, so I'm actually quite used to
> braces.  And even so, our experience in training young minds in
programming,
> shows that indentation is always a secondary, hence, unimportant, getting
> the job done is the most important.

Now whitespace gets the jobs done instead of braces. ;)

>
> But the best programmers will know that readability is also key.
>
> So if this is about readability, I'd readily vote for Python.  (at the
> sacrifice of more keystrokes to indent of course)

Not more keystrokes. With emacs, the keystrokes is the same. Almost... The
difference is instead of closing }, you untab (I consider that 1 keystroke
d: )

>
> Ever considered Scheme and LISP?  Only brackets.  Is that better?

Scheme is beautiful! The braces aligns nicely (turning off plaintext for the
sake of demonstration):

(define (reverse lis)
  (define (helper lis rev-lis)
    (if (empty? list)
        rev-lis
        (helper (cdr lis) (cons (car lis) rev-lis))))
  (helper lis nil))

Cheers,

>
> KANG Ghee Keong
>
>
>
>
> Deepak Sarda wrote:
>>
>> On Thu, Oct 30, 2008 at 6:25 PM, Michael Clark <[EMAIL PROTECTED]>
>> wrote:
>>
>>>
>>> I'm holding off learning python until it gets curly braces and forgets
>>> about
>>> whitespace...
>>>
>>>
>>
>> >From a python shell, try:
>>
>>
>>>>>
>>>>> from __future__ import braces
>>>>>
>>
>>
>>
>
> _______________________________________________
> Slugnet mailing list
> [email protected]
> http://wiki.lugs.org.sg/LugsMailingListFaq
> http://www.lugs.org.sg/mailman/listinfo/slugnet
>



-- 
Chris
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
Slugnet mailing list
[email protected]
http://wiki.lugs.org.sg/LugsMailingListFaq
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to