Semantic indentation (OpenGL)

Ken Seehof kseehof at neuralintegrator.com
Sat Oct 13 17:22:36 EDT 2001


Marek Kročák wrote:

> I am very very sorry for opening such a topic again. Before anything else
> I must say that I *love* Python's way of treating indentation.

> When I was at school we were doing a lot of OpenGL (in VC++). I have often
> (not always but many times) used following way of indentation for making
> my code a bit cleaner:

Well, this is a toung-in-cheek suggestion (hey, does anyone know the
official emoticon for toung-in-cheek?), but why not:    ;-&

glBegin(GL_POINTS); if 1:
    ...
    glVertex3f(...);
    ...
glEnd();

- Ken






More information about the Python-list mailing list