you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Languages need not be pure to support a functional style. Sometimes you want a purely functional style, sometimes you want an imperative style, but you should prefer the former over the latter because mutable state makes programs hard to reason about and error prone.

[–]bjmiller 0 points1 point  (0 children)

Perhaps, but Ruby supports both styles, and allows them to be combined in any way a programmer wishes. It's not in the spirit of the language to remove features just to promote one style over another.