Hacker News new | past | comments | ask | show | jobs | submit login

It can be abbreviated to

    SELECT: [num, name]
    FROM: [customers]
    WHERE EXISTS:
      SELECT: [name]
      FROM: [orders]
      WHERE:
        AND:
          - EQUALS: [customers.num, orders.customer_num]
          - LT: [price, 50]
It's not that different from formatted SQL. It's uglier, though, IMO, and more error prone. But to hate YAML for the fact that SQL looks less familiar in it, is a weird take.



> But to hate YAML for the fact that SQL looks less familiar in it, is a weird take.

True, it's a little side hustle that's funny but doesn't necessarily make much sense.


I guess the broader point they're driving at is that attempting to port familiar programming constructs to YAML DSLs will result in this kind of ugliness. If that's true though, it's a bit too subtle for my tastes.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: