Created
March 10, 2011 17:26
-
-
Save ilkerde/864508 to your computer and use it in GitHub Desktop.
What do you think about the type signature of this method ?!?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IEnumerable<Answer> GetAll() | |
{ | |
List<Answer> answers = GetAnswers(); | |
return answers; | |
} |
@forki Thanks indeed for your in-depth and thoughtful comments.
I do believe that I would have never achieved to express the importance of materialization (and even more, preserving the materialization information by type signature) as you did in your comment.
At this point, I'd like to thank all of you for lending your time and brain for my little question. It was very valuable and insightful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@codefromground thanks for your thoughts. appreciate it. i truly hope that we can dive into topics as this one while having a nice espresso at your site ;) Regarding the ReadonlyCollection: I'm really sorry that my initial example utilized a List. It distracted too much from what i wanted to stress. The second example (using Answer[]) fits more to what i wanted to have opinions for.