4 ms·
Thank you for making the effort the author's couldn't be bothered to. It's horrible btw. You can't even tell if and when order in this syntax is important. It
by ralfn 5y ago
Thank you for making the effort the author's couldn't be bothered to.
It's horrible btw. You can't even tell if and when order in this syntax is important.
It's also not clear if it's declarative or operational syntax. But since they are compiling to SQL it has to be the first. Yet the syntax strongly misleads people into assuming a particular execution strategy.
Not even naming of things is consistent (why shorten "array" into "arr" but not minute into "min").
It just looks like random syntax choices, without a cohesive rationale made by people that think the declarative syntax of SQL looks worse than for-loops, completely ignoring that the database will not execute anything the way it is structured here.
- gigatexal 5y agoYeah I don't like it. And I am not trying to gate keep as SQL is one of the few things I am decent at ... it just looks clunky and way too verbose. SQL is far easier to read. To me this has the verbosity of C whereas SQL is clean like Python (non-typed python).
- throwaway894345 5y agoI share your enthusiasm for SQL. I've been using it for nearly 20 years now, and it's an important technology. But I've done a lot of SQL generation for tools that manage arbitrary tables and SQL definitely makes this hard problem virtually impossible (or at least too hard for yours truly). So I try to keep an open mind for anything that purports to solve these problems. > it just looks clunky and way too verbose. Surely you need to compare this with the equivalent SQL before claiming that the SQL is cleaner? What would be the equivalent SQL. > To me this has the verbosity of C whereas SQL is clean like Python (non-typed python). Is this just a reaction to curly braces?
- darrenf 5y ago> Not even naming of things is consistent (why shorten "array" into "arr" but not minute into "min"). I don't believe it shortens "array" to "arr", does it? "Dep" and "arr" here seem to mean departure and arrival, which I'm reasonably sure is usual for the domain (flights).
- tjpnz 5y agoYou're correct although they did demonstrate just how incomprehensible this DSL is. At least with SQL it's easy to distinguish between your keywords, types and columns.
- __float 5y agoIs it easy with SQL? Or are you just used to it?
- staticassertion 5y agoIt seems pretty straightforward to see what's a keyword vs not tbh
- deleted 5y ago[deleted]
- zorgmonkey 5y agoOn the documentation site, they have syntax highlighting to help distinguish keywords
- bertil 5y ago> not minute into "min" That’s because MIN() is minimum?