Re:Ruminations on D: An Interview with Walter Bright
by steveklabnik on Tuesday August 30, 2016 @12:58PM
(#12391798)
While I agree with D's decision here, there are other languages which do allow anything at compile time. See Jai, for example.
[ Parent
| on HN ]
Re:Ruminations on D: An Interview with Walter Bright
by wtetzner on Tuesday August 30, 2016 @03:56PM
(#12393341)
And Common Lisp, and Scheme, and Elixir, and Clojure, and I'm sure I'm missing a bunch :)
Re:Ruminations on D: An Interview with Walter Bright
by lomnakkus on Wednesday August 31, 2016 @04:04PM
(#12401078)
Even... Haskell! Dundundun! (I'm referring to Template Haskell.)
As it turns out (IME) referencing arbitrary data (such as a database schema queried from a 'live' database) is actually of quite limited value.
Where I actually agree that it makes sense is the 'read-a-checked-in-file-and-generate-code-at-compile-time-from-that'. Otherwise, you're mostly just looking at a lot of pain compared to just generating code (that you might check in).