2 ms·
suppose you have a bunch of logic in a particular domain that’s noisy to write and read because of a lot of boiler plate. The ability to execute arbitrary code
by klysm 7y ago
suppose you have a bunch of logic in a particular domain that’s noisy to write and read because of a lot of boiler plate. The ability to execute arbitrary code at compile time enables you to easily create pretty much arbitrary abstractions/DSLs to make this more readable and writable. This certainly comes at a cost though, and if you abuse it too much it becomes very hard to reason about programs.