I am new to "real" javascript: ing and i know that more functional programming.
It seems that you get the best from both worlds in Javascript: Functional and Object Oriented Programming.
But in Ruby, you do not have first-class functions (not working as datatype).
Does this mean that Javascript embraces the best of both worlds, while Ruby embraces the object-oriented programming style only?
Ruby does are first class functions Do you think it is not? From Wikipedia: A language with first-class functions is that:
helps in creating new functions during a program execution in the language, stores them in data structures, They return them as arguments in the form of other functions, and the values of other functions.
You are probably kept on the fact that Ruby's process / Lambda has a call () / code> but it does not affect their first grade, general Lisp Lambdas It is also implemented with
funcall
and I do not remember that there are no first-class jobs claiming in common Lisp.
Comments
Post a Comment