QML style guide
Marco Martin
notmart at gmail.com
Tue Oct 30 19:06:34 UTC 2012
On Tuesday 30 October 2012, Aurélien Gâteau wrote:
> - it differs from many coding styles: Qt QML JavaScript, Douglas Crockford,
> jQuery, Node... so I think it is going to look odd and unfamiliar to many
> newcomers.
i think the historical reason is that the interpreter was used (is still?) to
try to run it, and if encounters some parse error, craps semicolons all over
the place and tries to execute it again (yep, quite gross ;).
not sure if still does that and if is done there too, or if some samer strict
mode is in place.
personally, would really rather use functions declarations that look like
kdelibs ones.
Cheers,
Marco Martin
More information about the Plasma-devel
mailing list