<div style="font-family: Arial; font-size: 14px;"><div lang="x-unicode">
<p>Greetings. I've been using QBS for quite awhile and have been expanding its use to do things other than build c++ projects. I have run up onto a limitting factor, and so I would like to make a language proposal to fix this.</p><p><b>Proposal: </b><br>
Generic `Item` for classifying bindable properties.<br>
</p>
<p><b>What does this look like?</b></p>
<p><code>Product {<br>
/* Syntax 1 */<br>
property var feed: Item {<br>
property string hobo<br>
property var seed: Item {<br>
property string chuck <br>
}<br>
}<br>
<br>
/* Syntax 2 */<br>
Item {<br>
id: feed // unique ID to Product<br>
property string hobo<br>
Item {<br>
id: seed<br>
property string chuck <br>
}<br>
}</code></p>
<p><code><code> /* Syntax 3 */<br>
Item {<br>
name: "feed" // unique name to Product<br>
property string hobo<br>
Item {<br>
id: seed<br>
property string chuck <br>
}<br>
}<br></code></code>}</p><p><code>
<br>
/* In use */<br>
import "Sneed.qbs" as Sneed<br>
<br>
Sneed {<br>
feed.hobo : "Hobo"<br>
feed.seed.chuck: "Chuck"<br>
}<br>
</code><br>
</p>
<p><b>What do you mean, "Classifying"?<br>
</b>Sub Properties, stemming from a singular name, like
`feed.hobo:` -- `feed` becomes the class, `hobo` becomes the
property.<br>
</p>
<p><b>Why not use modules to do this?<br>
</b>Modules can only exist in certain elements. `Item` should
exist for every module. [Unless specifically blacklisted]<br>
</p>
<p><b>Is this important?<br>
</b>Yes, insofar as it reduces namespace pollution in a practical way that is currently impossible.<br>
<b></b></p>
<p><b>What do you need this for?</b><i> </i><b><br>
</b>In short, I am creating an expansive probe with
hundreds of potential properties. Namespace pollution has become
an issue, as well as encapsulation.</p>
<p><b>Why not name things `feed_seed_chuck:` instead of
`feed.seed.chuck:`?</b><i> </i><b><br>
</b>It may be the case, that I do not want to use anything from
`feed` at all. It is much easier to check for `feed`s
initialization than individually for `feed_seed_check` and
`feed_hobo`.</p>
<p><b>Are you willing to program this?<br></b>I have ~8 years experience as a Qt developer, and some time to throw at this.<br>
</p>
<p><b>Potential Drawbacks:<br>
</b>- This does depart a bit from QML syntax rules.<br>
</p>
<p><b>What sort of feedback are you looking for?<br>
</b>- Is there any inherent opposition on technical grounds?<br>
- What is the ideal syntax?<br>- General thoughts.</p><p>Thank you for your time and consideration.</p></div></div>