3 ms·
I remember being struck by a snippet of pseudocode in a discrete mathematics textbook[0]: https://pastebin.com/L2dwawgu https://pastebin.com/L2dwawgu So basic
by loosetypes 8y ago
I remember being struck by a snippet of pseudocode in a discrete mathematics textbook[0]:
https://pastebin.com/L2dwawgu https://pastebin.com/L2dwawgu
So basically being able to run an arbitrary number of dependent, nested loops. Now imagine you want to run arbitrary code in the interior, rather than just incrementing a count.
It's a simple idea. And it can be expressed so succinctly in just a few lines of pseudocode in a freshman-level computer science textbook.
And yet I wouldn't want to touch this in Java. The lisp macro to write this isn't much more verbose than the pseudocode itself.
[0] Rosen's Discrete Mathematics and Its Applications, 7th e.
Edit: Traded formatting for pastebin