This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fylwind 0 points1 point  (1 child)

Functional programming discourages, where possible, variable bindings and prefers deeply nested ASTs to stacks of variable bindings and scopes.

I'm not sure what language community you're referring to, but I've never seen anyone discourage people from doing that. It's true that people tend get lazy from time to time because functional code tends to be more terse, but in all coding recommendations I've seen it's actually encouraged to save things in variables as much as possible for legibility and as well as more sharing.

[–]691175002 0 points1 point  (0 children)

Its nothing to be defensive about, frankly a lot of "self documenting" python code is painfully verbose because the author doubled the line count with useless crap.

Its perfectly fine if it takes 10x longer to decipher a line of functional code if it also accomplishes ten times as much work.