On 2013-06-19 00:54, Steven Schveighoffer wrote: > Hm... would be a nice idiom to implement generically in D. Like a type > switch. Pattern matching :) You could quite easily implement something like this in library code: match(b, (Foo f) => ,// use f (Foos fs) => // use fs ); -- /Jacob Carlborg