Is it bad style to override the built-in function `type`?

Michael Herrmann michael.herrmann at getautoma.com
Mon Dec 3 11:57:30 CET 2012


Hi Rusi, 

> Im entering this thread late (was off mail for a week), so pardon me
> if someone has already said this -- but have you looked at the
> difference between internal and external dsls:
> http://martinfowler.com/bliki/DomainSpecificLanguage.html (and links
> therein) ?
> Roughly speaking if what you are making is an external dsl, then its
> not really python (it may be python-inspired but thats not really
> germane) and so reusing python lexemes/structures etc in ways not
> exactly consistent with python usage should be no issue
> 
> If its an internal DSL, you are headed for causing/suffering grief.
> 
> I looked at your site [yes it looked almost interesting -- if only it
> ran on linux :-( ] and I cant really decide whether to classify it as
> external or internal

We want to capitalize on all of Python's advantages (tool/IDE support, available libraries etc) and are thus strictly offering an internal DSL (see http://www.getautoma.com/features/python_integration). As you pointed out, that's why it's important to stay consistent with Python's conventions. 

I agree it'd be nice to have Automa run on Linux, but unfortunately that's still a long time away...

Best,
Michael



More information about the Python-list mailing list