View Single Post
  #11  
Old 01-29-2009, 06:38 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Keep your inferior languages to yourself, obviously Python would be the better choice, its popularity speaks for itself. Utilizing Boost::Python makes it much easier to wrap C++.

Python implements hash tables (associative array) as the 'dict' object. You can specify dict literals using angle brackets.

e = {'key1': 'value1', 'key2': 'value2'}
print(e['key2'])

Python allows you to define many functions called by the interpreter, in this case, e['key2'] = 3 maps to e.__setitem__('key2', 3). You can quite easily take control of item or attribute lookup or other things.

One of the major points in favor of Python is readability, which is obviously important in Graal considering the programming experience and amount of people that would be looking at one script.

Thanks for thread URL Ziro.
__________________

Last edited by Inverness; 01-29-2009 at 06:58 PM..
Reply With Quote