Daniel Dekany said:
> Tuesday, December 30, 2003, 12:27:31 AM, Brad Cox wrote:
...
> > While you're at it, could you make #foreach {...} and #if {...} #else
> > {...} work too? PLEEEEEEEZE! I really can't stand #end.
> [snip]
>
> <sigh> If once on the world somebody would sit down to design his
> template language syntax before starting implement that... Other than it
> can by annoying to type #end :), an inherent problem with #foo...#end
> style is that it is not visible that #foo opens a block or not. This can
> be problem if the language wants to allow macros with nested body as:
>
> #border
> ...
> #end
>
> How will the parser know if #border has a corresponding #end or not? I
> will not... with
>
> #border {
> ...
> #}
<action type="biting flamebait">
i'm not sure how the parser knows, but it does. :) and as long as it does
that fine, i prefer #end, because (IMO) the former of your examples is more
readable to the human eye than the latter. i'm more interested in aesthetics
and simplicity than i am about making things easy on the parser.
> there wouldn't be problem.
...
but there isn't problem. ;)
</action>
Nathan Bubna
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]