QML style guide
Dmitry Ashkadov
dmitry.ashkadov at rosalab.ru
Wed Oct 31 06:34:49 UTC 2012
30.10.2012 21:33, Martin Gräßlin пишет:
> On Tuesday 30 October 2012 18:16:26 Aurélien Gâteau wrote:
>> The only part I don't really like is putting left curly brace on its own
>> line for functions because:
>>
>> - having different conventions for event-handlers and function code blocks
>> look inconsistent
>>
>> - 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.
> +1 - I am even not sure whether putting curly brace on new line is JSLint
> compliant in this case.
>
+1 for brace on the same line for JS. jslint.com: Expected exactly one
space between ')' and '{'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20121031/39d77f5e/attachment.html>
More information about the Plasma-devel
mailing list