3 ms·
Nonsense. The thing which (to me) makes a scripting language /better/ for actual scripting, is that it's run from sourcecode. In unix terms, if the file start
by deckiedan 13y ago
Nonsense.
The thing which (to me) makes a scripting language /better/ for actual scripting, is that it's run from sourcecode.
In unix terms, if the file starts with '#!'
Why? Because I can write a 4 line BASH script which I plonk into /usr/local/bin and it just works. When I want to check why something happened on the filesystem, I can open the script in place, and step through it in the REPL.
No faffing around with trying to figure out where the source code is, no compile/link/whatever...
Of course, while developing something a little more serious in a scripting language, I use a linter+unittests in pretty much the same way as a compiler... but that's besides the point.
Haskell is usually much more concise than C++, but I don't consider it a scripting language. (OK, I could use an interpeted haskell, I suppose... Just as you could use a BBC micro ASM interpreter in a VM... but whatever. It's just silly)