Re: Basic Resource Grafting

Charles Goodwin <[email protected]> Thu, 04 Dec 2003 02:57:21 +0000
Newsgroups gmane.comp.java.xwt.widgets
Organization XWT Foundation - www.xwt.org
Message-ID <[email protected]>
On Thu, 2003-12-04 at 01:10, David Crawshaw wrote:
> I've brought back some basic resource grafting

Excellent.  This (among other things) has been holding me back for
months.

> var r = xwt.graft(xwt._, "demo", xwt._.demo2);

[snip]

> Also note, the resource root has been moved to xwt._. Eventually 
> just referencing _.  should also work, but I haven't added that 
> in my patch yet.

It would be nice to come up with a cleaner way of doing this before the
Nitrogen API becomes stable.

It (_) is quite ugly and unwieldy.  Something like the oft-mentioned
'res' might be more appropriate.  We should remember our target audience
- to them a '_' is meaningless.  It is easier to convey meaning from a
word (or even a letter) and from a 'don't know the syntax' perspective,
words are much less intimidating than symbols.

- Charlie

-- 
Charles Goodwin <[email protected]>
XWT Foundation - www.xwt.org