Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is friction here because it’s at the meeting of two languages instead of implementation-interface, or implementation-service. People either try to hide the underlying SQL entirely on the one pole, or attempt to embed a SQL-like DSL within the primary language. I think that modern programming language ought to offer first class support for embedding other languages or DSLs - an idea behind Language Oriented Programming.

SQL offers the domain appropriate syntax, while the “host” language allows access to in-scope variables, functions, etc.

Of course there would be some more work in allowing a “mix” of two syntaxes. Another option is a query language as a subset of the language, sort of like C# and Linq.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: