5 ms·
IIUC, Dhall is pure and have no side effects
by makapuf 4y ago
IIUC, Dhall is pure and have no side effects
- fbn79 4y agoso something like using typescript on Deno without extra permissions?
- remram 4y ago"Pure" means something specific for programming languages: https://en.wikipedia.org/wiki/Pure_function https://en.wikipedia.org/wiki/Pure_function
- a-saleh 4y agoUnless you count the ability to do imports from around the web. But you can still make it side-effect-less by using caching and semantinc hashes on those imports?
- ghostwriter 4y agothese are side-effects performed by the compiler's runtime in a sandboxed environment. Dhall scripts are unable to perform side-effects on their own. This is a completely different setting compared to unrestricted side-effects available within a script written in general-purpose language.