Tech Off Post

Single Post Permalink

View Thread: Ideas for C# 5.0
  • User profile image
    exoteric

    wkempf said:
    exoteric said:
    *snip*

    I'll agree with tuple syntax, but the (1, 2, 3) stuff isn't the important part. What's much more important is tuple assignment.

     

    int a, b, c;

    (a, b, c) = TupleReturningMethod();

    I'll buy that for a dollar. I really liked that way of "decomposing" a tuple when using SML. Both are ways to make programs shorter because ultimately you don't need it, just as you don't need foreach.