[sc34wg3] CTM: Semicolons

Lars Marius Garshol larsga at garshol.priv.no
Thu Jan 29 11:58:36 EST 2009

(Another repost.)

* Lars Heuer
> I guess templates require also a semicolon after the end. The
> Pascal-esk version would look like:
> def is-member-of($member, $group)
>   member-of(member:$member, group: $group);
> end;

I don't think this is a good idea. The "end" already terminates the  
template definition. There's no need for anything further.

The reason Pascal has a semicolon there is that in Pascal a block is  
just another kind of statement. So the reason you need semicolons  
after blocks is that you need them after all statements. That doesn't  
apply in CTM.

--Lars M.

More information about the sc34wg3 mailing list