(Integer readFrom: 'abc' readStream) = 0
philippe.marschall at gmail.com
Sun Jan 13 14:24:43 UTC 2008
2008/1/13, Jason Johnson <jason.johnson.081 at gmail.com>:
> On Jan 8, 2008 9:43 PM, nicolas cellier <ncellier at ifrance.com> wrote:
> > However, I always preferred the power of Compiler evaluate: to its very
> > restricted avatar Number readFrom:
> > example of non smart readFrom:
> > Number readFrom: '1+1'.
> > Number readFrom: 'Float pi / 5 sin * 30'.
> > Of course, you gotta trust your users then, not very secure...
> > Nicolas
> That sounds like Java talk. :) I think the most powerful languages
> (Lisp and Smalltalk) are powerful exactly because they *do* trust
> their users.
Rigth. This is especially cool, if your user is someone who sends you
a SOAP message. Trusting him passing the whatever he sends you through
the compiler seems like the best way to go.
More information about the Squeak-dev