Re: Interactions between optional and nullable

On Tue, 08 Dec 2009 18:17:34 +0100, Robin Berjon <robin@robineko.com>  
wrote:
> That only works for this very specific example. It falls apart for  
> something as simple as:
>
> interface Unicorn {
>     void neigh (optional DOMString sentence, optional DOMString grunts);
> };
>
> Let alone for anything with more than two optional parameters that may  
> or may not be of the same type, etc.
>
> Admittedly, at some point we should just use an options map. But some  
> cases seem to still want positional.

This case can be easily solved in prose. Though it might be better to  
reverse the arguments.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 8 December 2009 17:27:29 UTC