Re:The myth of using Scala as a better Java
by agentgt on Thursday March 02, 2017 @11:00AM
(#13775037)
If this is going along the lines of S-Expressions I say touche but it is what it is.
You need markup instead of code sometimes because you want declarative configuration. You want to sandbox a developer/user.
Yeah you can write declarative code in Scala (and many languages using Monads, macros or some sort of non imperative abstraction) using an embedded DSL... but it is embedded and hard to enforce someone from sticking a System.exit(1) somewhere.
Again If you are in the Lisp camp I submit there are better options.
You need markup instead of code sometimes because you want declarative configuration. You want to sandbox a developer/user.
Yeah you can write declarative code in Scala (and many languages using Monads, macros or some sort of non imperative abstraction) using an embedded DSL... but it is embedded and hard to enforce someone from sticking a System.exit(1) somewhere.
Again If you are in the Lisp camp I submit there are better options.