Re: commabominations

new topic     » topic index » view thread      » older message » newer message

George Henry wrote:

> constant
>   alpha=120
>   , beta=26
>   , gamma=1382

*shudder*

I've complained about this format before.

The reason for this form is (apparently) to make it easier to comment things
out during debugging:

constant
  alpha=120
--   , beta=26
  , gamma=1382

The it solves the problem that if the *last* item were commented out, the
code would work fine. But that just means the *first* item will error if you
comment it out.

When I run into this sort of situation, I just add a dummy item to the end
of the list:

constant
  alpha=120,
  beta=26,
  gamma=1382,
  JUNK = 0

I don't think it's necessary to change the syntax for something like this.

-- David Cuny

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu