6 ms·
>SVG: Draw rectangles and triangles. If you don't have a script tag in it, totally declarative I totally agree. It is declarative the same way how HTML is. I
by spamtarget 4y ago
>SVG: Draw rectangles and triangles. If you don't have a script tag in it, totally declarative
I totally agree. It is declarative the same way how HTML is.
I don't see how SQL and SVG is similar from the viewpoint of approaching the problem. In SVG you concretely define what you want, and that is happening. In SQL you don't define the data you get, like ok, this cell will be 5, another will 8. I understand what you want to say, I just see those completely different ways.
>can be combined, can be filtered, and all without a single function or loop in sight
This is the key here, because this is exactly true to functional programming.
Compare SQL->LINQ->lambda expression
If they work the how you say, then
SQL - declarative
LINQ - declarative and functional the same time
Lambda exp - functional
This idea is completely nonsensical for me