funlangs icon indicating copy to clipboard operation
funlangs copied to clipboard

Add 'everything is a value' aka 'no statements' for dynamic languages

Open altV opened this issue 6 years ago • 0 comments

Dynamic languages are more FP-oriented when everything returns a value.

More functional-oriented syntax: Ruby. Example:

var = if a > 3 then 5
         else 7
         end

(Actually, every last syntactically meaningful complete construct returns a value in Ruby)

Counterexamples: Python, Lua.

altV avatar Dec 25 '18 02:12 altV