[WebIDL] Representing functions that user code can call

We have a way to represent user functions that platform objects can 
call: callbacks.

But I don't think there's really a good way to represent functions that 
are not hanging off any particular object that user code can call.  Or 
can callbacks be used for that too?

Note that right now the web components spec is using callbacks for this, 
but they're not a great fit given how callback conversions between 
WebIDL and ES are defined...

What's really wanted for this sort of use case is something closer to 
how Constructors are defined: basically a standalone WebIDL operation, 
not hanging off any object.

Thoughts?

-Boris

Received on Saturday, 8 December 2012 02:56:43 UTC