3 ms·
dmd as a library does not give you access to the compilers backend as of today. The whole point in D is to write the program in D or write the DSL directly int
by mhh__ 6y ago
dmd as a library does not give you access to the compilers backend as of today.
The whole point in D is to write the program in D or write the DSL directly into a D file.
If I can be blunt here, why not? Because it would be crap. It's like sprinting in Wellies, by using a scripting language you either create an absolute Herculean task to wrap everything properly or immediately lose all the powerful things D let's you do.
- cleberz 6y agoWell, "wrap everything" is not really a concern (phew!) and I can't see how would anyone "lose all the powerful things D let's you do" with D being the language you'll write most of the code, anyway. But maybe you're right about writing everything always in D!!! It's, hands down, the final answer to everything anyone would want, isn't? I wonder if there is some way of warning people who write software in Javascript, PHP, Ruby, Python, Perl, Erlang, Elixir, Tcl and all those other clearly inferior languages about that... I'm pretty sure they'll switch to D right away!!!!1! (Just kidding: I'm writing Til because I want to and nothing more.)