Comment Threads for Craig Stuntz

He's invented Select()
What do you mean Craig? I mean yes, Select is an instance of what I'm talking about and uses the same underlying principles but the usage is quite different.
Select is just a more general form of what he's doing (it's a full monad, rather than just a return). You can do everything shown in the article without any special interfaces and you can compose it with other LINQ functions, rather than being constrained to a specific API.
Absolutely you could do that, but I've yet to work up the guts to ditch interfaces entirely in favor of delegates. Plus by declaring interfaces and looking for good seams gives you an opportunity for some cool AOP stuff.

An good use would be automatic logging. Your IoC container can automatically intercept any IMapper<>.Map calls and log the input and output.
All relative, I guess. Long for a blog post, but... it's a summary of 5-1/2 years of work.
I know! Let's just store everything as strings! No more pesky server-specific functions!
This post has now been corrected. The "problem" doesn't exist at all when not running in debug mode.

Popular (Front Page)

RSS | Twitter

Newest (may contain spam)

RSS | Twitter

Site Updates

Twitter