On Sat, Sep 11, 2010 at 2:11 AM, Mike Caron <[email protected]> wrote: > It depends on the situation. It boils down to has-a vs is-a, really. Or, on > other words, if it looks like a duck, quacks like a duck, and has a feathers > property, but was created by CreateChimera(), can we still treat it as a > duck? > > (Lua, Python and Javascript say yes. C/++, FreeBasic and others say no) Lua, Python, and Javascript are all far more like current HamsterSpeak than any of the statically typed languages you mention.
IMO, Lua has a good deal in common philosophically with HS, while doing things in a cleaner way; hence I'd put it forward as a good model for what you want to do. >> A whimsical thought: it occurred to me that using : instead of . would >> be more idiomatic for HS. > > Just a minor problem: All 12 hojillion constants that already use : Not to mention that if attribute access is meant to become common, you don't want to place additional obstacles (Shift+; for every attribute access, vs .) in the way of the script writer. _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
