2 ms·
Thanks. My quip was just that objects (as in object-oriented-programming) aren't the right abstraction. Having some kind of mapper in your language between th
by eru 9y ago
Thanks. My quip was just that objects (as in object-oriented-programming) aren't the right abstraction. Having some kind of mapper in your language between the database and the entities your program is dealing with is useful, and you showed that functional programming is a more friendly host than oop.
(Logic programming might also be workable?)
- int_19h 9y agoObjects are fine, it's classes that are often limiting. Consider the very first example above (corrected to be valid): var r = customers.Select(c => new { cust = c, orders = c.Orders }) This gives you an IEnumerable (basically, a forward-only sequence) of objects - but these objects are of an anonymous type that was implicitly defined by "new".