4 ms·
All of those things are procedural in exactly the way I described. SQL is the very definition of procedural, I don't know what you're getting at there. Each thi
by pie_flavor 5y ago
All of those things are procedural in exactly the way I described. SQL is the very definition of procedural, I don't know what you're getting at there. Each thing you mentioned has an `if` statement that runs at one defined point in its execution. If it executes multiple times that's because it's part of a construct that runs everything inside it multiple times. XSL is the closest thing to a CSS-style rules engine, but you still use it once to create a new document, whereas the CSS rules are reevaluated live as anything about the context changes.
- thih9 5y ago> SQL is the very definition of procedural, I don't know what you're getting at there I assumed you were referring to programming paradigms. "Procedural" is part of the "imperative" paradigm [1]. "declarative" is different from "imperative" [1]. SQL is, for the most part, "declarative" [2]. > If it executes multiple times that's because it's part of a construct that runs everything inside it multiple times. How is that different from CSS? Aren't CSS rules also part of some larger construct and they get run multiple times (i.e. once the context changes)? [1]: https://en.wikipedia.org/wiki/Programming_paradigm https://en.wikipedia.org/wiki/Programming_paradigm [2]: https://en.wikipedia.org/wiki/SQL https://en.wikipedia.org/wiki/SQL