Click here to Skip to main content
13,144,309 members (37,781 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: someone save me Pin
John C7-Oct-08 19:16
memberJohn C7-Oct-08 19:16 
GeneralRe: someone save me Pin
jgasm8-Oct-08 4:56
memberjgasm8-Oct-08 4:56 
GeneralRe: someone save me Pin
James Brown7-Oct-08 21:00
memberJames Brown7-Oct-08 21:00 
GeneralC# 4.0 Pin
Jamie Nordmeyer1-Oct-08 10:20
memberJamie Nordmeyer1-Oct-08 10:20 
So now that C# 4.0 is being talked about, I was wondering what people thought would be good additions to the language. Sorry if this is a repost, but I went through several pages, and didn't see anything, so...

What I'd frankly love to see would be tuples. Rather than having to use multiple 'out' parameters, you'd just return multiple values:

public int,int MinMax(int[] numbers)
{
   int min, max;
   // Code to calculate min/max
 
   return min, max;
}


What do you think? What would be good for the next version?

Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA

General.Net 2.0 Pin
Ennis Ray Lynch, Jr.1-Oct-08 10:22
memberEnnis Ray Lynch, Jr.1-Oct-08 10:22 
GeneralRe: .Net 2.0 Pin
Jamie Nordmeyer1-Oct-08 10:25
memberJamie Nordmeyer1-Oct-08 10:25 
GeneralRe: .Net 2.0 Pin
Christian Graus1-Oct-08 10:38
mvpChristian Graus1-Oct-08 10:38 
Generalomg yes Pin
Ennis Ray Lynch, Jr.1-Oct-08 10:40
memberEnnis Ray Lynch, Jr.1-Oct-08 10:40 
GeneralRe: .Net 2.0 Pin
Jamie Nordmeyer1-Oct-08 10:42
memberJamie Nordmeyer1-Oct-08 10:42 
GeneralRe: .Net 2.0 Pin
melchizidech1-Oct-08 23:05
membermelchizidech1-Oct-08 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 22 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid