3 ms·
>Of course it is! It’s explicitly defined as an interchange format. So an INI file is code too? Generally people think of code as being executed and doing som
by ChrisLomont 5y ago
>Of course it is! It’s explicitly defined as an interchange format.
So an INI file is code too?
Generally people think of code as being executed and doing some task. Can you use JSON to compute prime numbers?
- reegnz 5y agoA language does not need to be considered Turing complete to be considered code.
- ChrisLomont 5y agoIt needs to perform some computation, right? Or is code now any structured data read by a program?
- olodus 5y agoA python script could be a text doc if you open it in a markdown editor. A yaml file could execute web call if run through a program with a parser. It is all up to the interpreter you give the code too. Your program that takes yaml config is an interpreter, though probably a very limited one and hopefully a safe one (though that needs to be tested / checked for to be more sure of)
- eyelidlessness 5y agoNow? XML has been code for decades.