Re: question on anonymous type
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Thu, 05 Jun 2008 19:51:31 -0400
Jon Skeet [C# MVP] wrote:
On Jun 5, 3:34 am, Arne Vajhøj <a...@xxxxxxxxxx> wrote:What is the best ? Which option should I choose ?I would go for the first as being more readable. Most
The first seems to be more readable ...
C# programmer will be used to reading the type first.
At the moment, yes. I think things will change as C# 3 becomes more
widely known.
I doubt it.
C# 3 will become widely known.
But most C# developers will have learned C# in earlier versions
and many of them will also use other languages from let us call
it "the C syntax family".
And you will not be typing the class name twice. The
IDE should propose it the second time.
True, but it's not really about typing. It's about information
redundancy.
I can not see that redundancy as a big problem. The compiler
will catch it if inconsistent changes are made.
Arne
.
- Follow-Ups:
- Re: question on anonymous type
- From: Tim Jarvis
- Re: question on anonymous type
- From: Jon Skeet [C# MVP]
- Re: question on anonymous type
- References:
- question on anonymous type
- From: timor . super
- Re: question on anonymous type
- From: Arne Vajhøj
- Re: question on anonymous type
- From: Jon Skeet [C# MVP]
- question on anonymous type
- Prev by Date: Re: Unable to set Masterpage Session to ContentPage
- Next by Date: Re: How to determine whether a type implements a generic interface with a self-referential constraint
- Previous by thread: Re: question on anonymous type
- Next by thread: Re: question on anonymous type
- Index(es):
Relevant Pages
|
Loading