3 ms·
Many people do use D as a scripting language, replacing their use of bash. D programs can be compiled and run in one step. #!/usr/bin/env rdmd import s
by WalterBright 3y ago
Many people do use D as a scripting language, replacing their use of bash. D programs can be compiled and run in one step.
#!/usr/bin/env rdmd
import std.stdio;
void main()
{
writeln("Hello, world with automated script running!");
}
> ./myprog.d
Hello, world with automated script running!
https://dlang.org/rdmd.html https://dlang.org/rdmd.html
- thechao 3y agoClassically, you wait until your name is said three times, before appearing before the supplicant!
- tripleo1 3y agoDo you also have: 1. Statically linked executables (essential but not crucial) 2. Dependency management (import tripleo.rtfm from "git:...#1234567") 3. A good AST API (jdt/roaster, javapoet, etc) 4. Tooling (cf spoon/soot) (I approve this comment, even given it's limited usefulness/expressivity)
- WalterBright 3y ago1. yes 2. no 3. that's what this topic is about 4. yes
- bachmeier 3y ago> 2. Dependency management (import tripleo.rtfm from "git:...#1234567") Not built into the compiler, but Dub, the official package manager distributed with the compiler, should be what I think your concise statement is referring to.