3 ms·
Nothing prevents you from using a function (`last(myArray)`). In a dynamically typed language what you are proposing makes only very limited sense.
by jkrems 12y ago
Nothing prevents you from using a function (`last(myArray)`). In a dynamically typed language what you are proposing makes only very limited sense.
- lomnakkus 12y agoI'm not saying functions are bad or anything. They just "feel" wrong since they don't look like the built-ins. Regarding "dynamically typed": CLOS[1] got this right. Common Lisp is dynamically typed. In short: Dynamic/static typing has very little to do with this. [1] http://en.wikipedia.org/wiki/Common_Lisp_Object_System http://en.wikipedia.org/wiki/Common_Lisp_Object_System
- aikah 12y agoscoped monkey would be quite usefull? One could mess with prototypes yet keep them clean in the global scope. last(array) feels to much like C style OOP.