why ; ?

Bruce Adams tortoise_74 at yeah.who.co.uk
Fri May 9 15:55:32 PDT 2008


On Thu, 08 May 2008 13:00:22 +0100, Janice Caron <caron800 at googlemail.com>  
wrote:

> Z008/5/8 Gilles G. <schaouette at free.fr>:
>>  > As numerous examples have shown, it is perfectly
>>  > possible for the compiler to misinterpret the programmers intent, and
>>  > produce code that does completely the wrong thing.
>>  >
>>  In Python, nearly every time you need a long line, there are already  
>> parentheses in the expression, so you don't need to escape the new line.
>
> So if I mistype, and accidently fail to match parenthesis, the
> compiler can't detect it, and instead goes ploughing on, tying to
> compile through the next few statements. When it finally reaches a
> point where it can't parse any more, it will have no idea exactly
> where it got lost in the first place.

I got the T-shirt for that one when learning Python.



More information about the Digitalmars-d mailing list