D-Programming-Language/phobos — pull request #645 by alexrp (2012-06-24 04:42:03+00:00)
Title: Add a match() function to std.variant for pattern matching on discriminated unions.

This is much nicer than the equivalent if/else forest people typically use to operate on `Variant` values.