← Back to context

Comment by Ericson2314

1 year ago

A core language is a minimal AST without surface syntax (and thus no bikeshedding of that) that distills the surface language to its essence.

SQL is basically the list monad, with various quotients / refinements:

- Sometimes the order doesn't matter - Sometimes there are functional dependencies - Sometimes one knows the length of the list in question is 1 (foreign key constraints)