3 ms·
Additionally, SQL is a domain specific language that is standard and cross platform. Why write a query dozens of different times for dozens of different host la
by smadge 8y ago
Additionally, SQL is a domain specific language that is standard and cross platform. Why write a query dozens of different times for dozens of different host languages when you could just write it once?
- scarface74 8y agoIn C# where you have something similar with Linq it makes sense. The runtime translates Linq to expression trees and the Linq provider translates the expression tree at runtime to a native query. That native query can be anything - sql, mongoquery, or can be an in memory collection, etc. You can use the same strongly typed Linq expression with anything.
- smadge 8y agoI guess that’s true! Embedded domain specific languages could be useful to swap out your data layer or provide a unified interface for different data layers.