4 ms·
LINQ is pretty sick and if obj-c has a similar feature I have never seen it.
by pfisch 14y ago
LINQ is pretty sick and if obj-c has a similar feature I have never seen it.
- king_magic 14y agoIt's nice. I lived and breathed LINQ for many years. It's certainly useful; though I've been able to live without it fairly comfortably. It's just not a deal-breaker for me. But it is nice. I do love LINQ-to-objects.
- MatthewPhillips 14y agoEh, disagree. It's confusing for a number of reasons, firstly because instead of choosing the common functional names -- map, filter, reduce, flatten, etc. they choose to go with SQL-like naming. Just an annoyance. Secondly, Expressions are a clever hack on top of the language, but they are not intuitive for the person using them and requires you to know too much about the particular implementation you are using (for example, if using Microsoft's ORM, string concantenation inside an Expression is disallowed). It's not their fault, C# isn't really functional, and Expressions allow them to make it look functional and have some laziness built in, but there are still enough gotchas that make using it a pain.
- MichaelGG 14y agoIs there any other quotation-based system that _doesn't_ require you to understand the implementation? Or any language/runtime/library? SQL is different from one DB to the next, and a lot of C APIs are not implemented identically on all OSes. As to the names, I'm not sure it's safe to assume that "Map" would result in better usability than "Select", for MS's target audience.