F
falcon
Does Ruby allow javascript like invocation of methods (or access to
properties) like this:
someProperty = "nameOfStudent"
Object[someProperty]
rather than just Object.nameOfStudent?
I need something like this because how an object is manipulated depends
on runtime...basically it will be an experimental database system so
users will be able to manipulate data in any way they desire.
Iterators and lambda like functions make this very easy already.
Also, is there a limit to how deep one can do recursion? Recursion can
easily cause stack overflow error in Java, but some languages don't
have that problem (I guess it is called tail call optimization).
Thanks!
Falcon
properties) like this:
someProperty = "nameOfStudent"
Object[someProperty]
rather than just Object.nameOfStudent?
I need something like this because how an object is manipulated depends
on runtime...basically it will be an experimental database system so
users will be able to manipulate data in any way they desire.
Iterators and lambda like functions make this very easy already.
Also, is there a limit to how deep one can do recursion? Recursion can
easily cause stack overflow error in Java, but some languages don't
have that problem (I guess it is called tail call optimization).
Thanks!
Falcon