in

B# .NET Technical Community Homepage

Bart De Smet's online technical community

Browse by Tags

  • Curry for dummies (Cont’d) – A happy ending

    I didn’t intend to make this a series of posts but that’s the way things go. Based on feedback from readers and additional questions raised, one decides that add that little bit more to it and ultimate you’re writing a sequel. Where have we been on this journey? First, we took a look at the abstract...
    Posted to B# .NET Blog (Weblog) by bart on 08-22-2008
  • Curry for dummies cont'd - A note on purity

    Recently I posted a post titled Curry for dummies . I have to admit the article did possibly exceed the dummy level, so here's a little code-based wrap-up before extending upon it: int Add( int a, int b) { return a + b; } // // Without curry support = all or nothing // var add = Add; // a delegate...
    Posted to B# .NET Blog (Weblog) by bart on 08-18-2008
  • Curry for dummies

    Introduction Functional programming concepts aren’t that hard but sometimes a little abstract. In this post I’ll try to demystify the concept of currying, or - in simple words – partial function application. If you wonder where the name “curry” comes from, it’s named after Haskell Curry, one of the creative...
    Posted to B# .NET Blog (Weblog) by bart on 08-13-2008
  • 1.To(3) - Ruby-style Internal Iterators in C#

    External or internal? C# introduced the concept of iterators in C# 2.0 but it's a less-known fact that there are two sorts of iterators. The ones provided in C# are so-called external iterators . The distinction lies in the party that controls the enumeration of the iteration, e.g. public IEnumerator...
    Posted to B# .NET Blog (Weblog) by bart on 07-05-2008
  • Continuations, futures, and whatnot - Thoughts on some asynchronous patterns

    This sounds like one of those posts that's about to draw scientifically sound conclusions. It isn't. The other day I had a discussion about various ways to express asynchronisity (or asynchronousness, whatever spell checker upsetting word you prefer) in API designs. The answer might be shocking...
    Posted to B# .NET Blog (Weblog) by bart on 06-02-2008
  • The Return of the Pattern Matcher - Sample Code Available

    It's been a while since I continued my series on a functional pattern matcher in C# . I finally found some time to extract the simplified pattern matching code from the bigger project I'm working on and cook up a downloadable documented sample. Without further delay: here it is . It contains...
    Posted to B# .NET Blog (Weblog) by bart on 04-26-2008
  • Pattern Matching in C# - Part 8

    In the last handful of posts in this series we've been looking at ways to match a whole set of patterns, including: Constants Objects Lists and arrays Dictionaries There's not that much left to apply (meaningful) matches for (feel free to think of others of course) so from this post on, we'll...
    Posted to B# .NET Blog (Weblog) by bart on 04-16-2008
  • Pattern Matching in C# - Part 7

    In our last encounter on the pattern matching mission we covered techniques to match T[] and List<T>. Today we cover another type that's being use a lot: dictionaries (the generic brothers of Hashtable which you could match too, exercise ). I've already shown an example of such a match...
    Posted to B# .NET Blog (Weblog) by bart on 04-15-2008
  • Pattern Matching in C# - Part 6

    Monday morning: The Return of The Pattern Matcher. After an awesome weekend (well, a Saturday at least) plenty of sun here in Seattle, we'll dive into even more pattern matching fun. This time around we'll investigate ways to match collections. Last time we wrapped our heads around ways to match...
    Posted to B# .NET Blog (Weblog) by bart on 04-14-2008
  • Pattern Matching in C# - Part 5

    Remark: Some readers have asked me for the sources of all this magic. Since this series is based on an extraction from a bigger project and I'm composing the decoupled (and slightly simplified) pattern matcher as I'm writing these blog posts, the source isn't in a publishable condition yet...
    Posted to B# .NET Blog (Weblog) by bart on 04-11-2008
Page 1 of 2 (18 items) 1 2 Next >
Powered by Community Server (Non-Commercial Edition), by Telligent Systems