3 ms·
Does this mean that all code written in pure functional languages is not code, since it does not "do" anything?
by amelius 11y ago
Does this mean that all code written in pure functional languages is not code, since it does not "do" anything?
- echion 11y agoIt describes calculations or operations, so functional code still seems to perform or describe some actions. Constraint logic programs seem more of the grey area I think you're talking about. Is a set of constraints "code" (c.f. https://en.wikibooks.org/wiki/Prolog/Solving_a_Logic_Puzzle#Complete_solution https://en.wikibooks.org/wiki/Prolog/Solving_a_Logic_Puzzle#... )?
- mseepgood 11y agoWhat if I perform calculations with C++ type declarations? C++ templates are Turing-complete after all.
- rootlocus 11y agoYou're confusing declarations with declarative.