[Haskell-beginners] Haskell-style types in C or C++
Christopher Howard
christopher.howard at frigidcode.com
Sat Jul 30 20:45:06 CEST 2011
One of the things that I love about Haskell is the syntax for creating
user defined types. E.g.:
Data QueryResult = NoResult | DatabaseError String | Results [String]
I can prototype an entire program around these self-made types and it is
a lot of fun. Out of intellect curiosity, though: what would be the
equivalent construction in C or C++? (Say, for the type defined above).
--
frigidcode.com
theologia.indicium.us
More information about the Beginners
mailing list