At the risk of being one of those people that annoy the p*** out of me... you know what would be cool? Some kind of inline substitution technique, so that you could define properties on classes or interfaces that compiled directly to something else.

Using $.prop as an example:

$.("something").checked

// compiles to

$.("something").prop("checked")

To be effective, it should be possible to define these in definition files, maybe something like

interface JQueryElement {

define checked: bool {

get { return this.prop("checked"); }

set { this.prop("checked", value); }

}

define selectedIndex: number {

get { return this.prop("selectedIndex"); }

set { this.prop("selectedIndex", value); }

}

}

I appreciate that this looks a lot like macros, so I’m likely to get shot down by Anders, but I thought it was worth suggesting.