[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rather, DSSLs increase modularity, productivity
On Thu, 20 Nov 2003, Bob Cassels wrote:
> mvanier@cs.caltech.edu wrote:
>
> >The universe of the scripting language and the universe of the
> >non-scripting language. In Dylan, the difference is blurry to
> >non-existent. "Script" code is just regular code without type annotations,
> >whereas "non-script" code has those annotations.
> >[...]
> >If I look at all the python scripts I've written, nearly ALL of them could
> >have been written in a statically-typed language. Python is extremely
> >dynamic, but I've rarely needed to use that power. But that's just my
> >experience.
> >
>
> I'm not a Python expert, just a casual user. But I don't see why
> someone couldn't add (optional) type declarations to Python, with
> Dylan-ish semantics. Then you could do Dylan-style compilation and get
> better performance for your Python.
Because you can do this:
class C(object): pass
class D(object): pass
myc = C()
print myc # <C object>
myc.__class__ = D
print myc # <D object>
Daniel
- References:
- Re: dual-language systems increase modularity
- Re: dual-language systems increase modularity
- From: Michael Vanier <mvanier@cs.caltech.edu>
- Rather, DSSLs increase modularity, productivity
- From: Mike Newhall <mike@newhall.net>
- Re: Rather, DSSLs increase modularity, productivity
- From: Michael Vanier <mvanier@cs.caltech.edu>
- Re: Rather, DSSLs increase modularity, productivity
- From: David Lichteblau <david@lichteblau.com>
- Re: Rather, DSSLs increase modularity, productivity
- From: Michael Vanier <mvanier@cs.caltech.edu>
- Re: Rather, DSSLs increase modularity, productivity
- From: Bob Cassels <bobcassels@netscape.net>