|
|
|
|
|
by apgwoz
6388 days ago
|
|
Study up on context managers, decorators, and meta-classes, which will assist in creating DSLs. However, you don't really need to use these features to build DSLs. The use of method chaining (think jQuery) can lead to interesting languages. Or, take Django's chaining for making queries. User.objects.filter(first_name='Andrew').order_by('last_name') Or, you can get more complicated and do something like described at: http://code.activestate.com/recipes/534150/ EDIT: s/be vital/assist/ on line 1. |
|
Make your mind up. Either they're vital or they're not. You can't have both.