QML style guide

Mark markg85 at gmail.com
Tue Nov 6 19:22:02 UTC 2012


On Tue, Nov 6, 2012 at 8:10 PM, Aaron J. Seigo <aseigo at kde.org> wrote:
> On Tuesday, November 6, 2012 18:26:17 Mark wrote:
>> Why can't the style follow the C++ style as close as possible?
>
> because this is one place where QMl/JS deviates in a consistent fashion. so
> we'd be making all of *our* QML look foreign to the QML the rest of the world
> writes so as to make it conform to our C++ background :)
>
> yes, i also like the consistency of on-new-line (and it was the style i used
> to use for even conditionals in my own code in C++ too, prior to the kdelibs
> style) .. but this is a place where it's sensible to bend to the global state
> of things.
>
> every language has its patterns ...
>
> --
> Aaron J. Seigo
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>

True.. for javascript. And QML is obviously "based" on javascript and
should therefore follow the defacto javascript coding standards. It's
not something i like but i understand why code style is as it
currently stands.


More information about the Plasma-devel mailing list