Yet another C# feature creeps into Java

Here. From Keith Wedinger: Java SDK 1.5 (code named Tiger) is going to support variable length argument lists. In C#, this is accomplished via the params keyword. In Java, they are going to use an ellipsis token.


Comment Feed 4 comments on this post

anon:


Not a bad thing. It's always good to have a choice. Considering what we've got in C# that was taken from Java, I don't think we should be spinning this as "yet another C# feature in Java".

Friday, Jun 6, 2003, 6:43 AM


Mike Dimmick:


I'm not quite clear on whether this was an ANSI C proposal propogated into C++, or a C++ feature back-propogated into C (like the whole function-declarations thing...)

The proposed Java syntax is a bit of a hybrid though: it insists that you declare 'Object[] args...' even though Object is the only valid type for it. I suppose you couldn't do what C/C++ do and only provide a library function for getting at your parameter array.

Friday, Jun 6, 2003, 3:45 PM


anon:


Is it possible to ask for a variable length array of strings, a la "params string[]"?

Friday, Jun 6, 2003, 8:10 PM


Stephane Rodriguez:



Slightly irreverant to what the Java people did so far.

Sunday, Jun 8, 2003, 3:26 AM





comment on this post

HTML tags will be escaped.

Powered By ASP.NET

Hosted by SecureWebs

Microsoft

Mensa

IEEE


moving companies
addiction treatment
sunglasses
Kratom
How To Lose Weight Fast
cocktail dresses
Credit Card Balance Transfer
Add URL
Stock Trading
Health Insurance Quotes
Promotional Merchandise
Jet Privé
loans for bad credit