Delight

Thomas Leonard talex5+d at gmail.com
Fri Oct 10 12:33:36 PDT 2008


On Thu, 09 Oct 2008 20:40:57 +0200, Jarrett Billingsley wrote:

> On Thu, Oct 9, 2008 at 8:06 PM, Thomas Leonard <talex5+d at gmail.com>
> wrote:
>> - labels (and therefore goto). They might come back later (with a new
>>  syntax, since colon is used for indented blocks).
> 
> Is there any syntactic requirement for colons on blocks as in Python? At
> least when I've used Python I've done nothing but curse and swear
> profusely when I forget a colon where it's completely obvious what my
> intent is.  Couldn't they be eliminated?

I don't think so. For example:

  if a .b .c

could mean

  if a: .b.c

or

  if a.b: .c

Probably removing the : would require () around the condition.


More information about the Digitalmars-d-announce mailing list