Multi-paradigm

This blog is interested in imperative, functional, procedural, logic-based, and all sorts of ways of thinking about programming. I write mostly about C++, my bread-and-butter. Recent articles have focussed around functional programming in C++; this is one paradigm C++ programmers often neglect. Many believe that it is not possible or efficient to do. I challenge this assertion by example!

Tuesday, November 6, 2012

The Election Monad

 auto fourMoreYears = std::make_pair(Obama(),Romney()) >>= americanElection;
Posted by Splinter of Chaos at 9:55 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Please feel free to post any comments, concerns, questions, thoughts and ideas. I am perhaps more interested in what you have to say than you are in what I do.

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Splinter of Chaos
View my complete profile

Blog Archive

  • ►  2023 (1)
    • ►  March (1)
  • ►  2022 (2)
    • ►  July (1)
    • ►  May (1)
  • ►  2020 (2)
    • ►  August (1)
    • ►  July (1)
  • ►  2015 (3)
    • ►  February (2)
    • ►  January (1)
  • ►  2014 (2)
    • ►  November (1)
    • ►  February (1)
  • ▼  2012 (28)
    • ►  December (6)
    • ▼  November (13)
      • Arrows and Kleisli in C++
      • The Importance of Function Objects
      • Some Observations on Human Behavior
      • Monadic Parsing in C++
      • A public letter to Microsoft about the CTP.
      • Generalized Function Objects Explained (For the C+...
      • The Object-Function Paradox.
      • Generic Function Objects, or Generalizing Associat...
      • Highlights from the current ISO proposals.
      • Understanding Monads
      • The Election Monad
      • Rethinking std::binary_function.
      • Monadic IO in C++
    • ►  October (3)
    • ►  September (3)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
Powered by Blogger.