← Back to team overview

ooc-dev team mailing list archive

Re: New ORC - Keyword arguments

 

c# uses the 'params' keyword, personally i like '...' for this
What is the type of arguments ? array of T ?

On Mon, May 10, 2010 at 1:00 PM, Friedrich Weber <
fred.reichbier@xxxxxxxxxxxxxx> wrote:

> Sounds good!
> What about "variable" keyword arguments, as in Python's **kwargs syntax?
> For example:
>
>        print: func (hello: String, :keywords) {
>                // `keywords` is now a HashBag containing all additional
> arguments.
>        }
>
>        print("hello world", something="huhu", bla=123,
> gnurk=ArrayList<String>
> new())
>
> Also, default values for arguments would be helpful.
>
> Cheers,
>
> Friedrich
>
> _______________________________________________
> Mailing list: https://launchpad.net/~ooc-dev
> Post to     : ooc-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ooc-dev
> More help   : https://help.launchpad.net/ListHelp
>

References