| Bill Allombert on Sat, 15 Nov 2025 13:02:30 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Comments between lines raise syntax error |
On Sa t, Nov 15, 2025 at 12:49:09PM +0100, Ewan Delanoy wrote:
> >I advise to use { ... } for complicated multi-line statements instead of a
>
> >line continuation \. The latter works best for a very small number of lines.
>
> On the other hand, if one wishes to separate subinstructions line by line for readibility inside a "while" or "if" loop
> inside a function, line continuations are all that's available, right ?
> The error message is "*** sorry, embedded braces (in parser) is not yet implemented."
Embedded brace would be redundant. All linebreak are discarded between the outer {} anyway.
> For example, in the code below I cannot forego the line continuations if I
> wish to avoid the not very readable one-liner
> "example()=if(noMeatToday(),cry();roar(););", right ?
What is wrong with
example()=
{
if (noMeatToday(),
cry();
roar();
)
}
Cheers,
Bill.