← Back to team overview

ooc-dev team mailing list archive

Re: New ORC - Keyword arguments

 

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



Follow ups

References