Richard Walter on Wed, 28 Jul 2010 13:26:51 -0700 (MST)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [game-lang] Language Syntax

--- On Wed, 7/28/10, Simon McGregor <londonien@xxxxxxxxx> wrote:
> I'm personally a fan of Python's indentation syntax
> (parentheses in code are usually redundant)

As Joel already said, meaningful whitespace is pure, unadulterated evil.

>From a pragmatic point-of-view, if we choose a syntax that is close to an existing language, then we ought to use that existing language's syntax consistently & completely.

For example, if we end up using something that looks like C, with {}'s for blocks, and ';' as a line separator, etc... then we ought not use ! for anything other than logical negation.  (And I'm not advocating that we use C's syntax, this is just an example.)

The worst thing is to make something look 90% like X, and the last 10% be different.


game-lang mailing list