[APBeta] Scripting question

Paul Rodman paul at ilanga.com
Mon Apr 20 13:01:48 PDT 2009


On Apr 20, 2009, at 12:53 PM, RPEHLM wrote:

> One very handy effect of using enums is the ability to reduce the  
> amount of parameter checking needed in class methods.  I like  
> structures for being able to pass more than one value back from a  
> function, although they do of course have a whole bunch of other  
> uses.  Dictionaries are great for organising groups of related  
> data.  Retrival is quite fast even from large dictionaries.  I would  
> like to just be able to read/write a dictionary to a file (e.g.  
> d.write(path) or similar),  however it is trivial to do the long way  
> round :)

What format? Tab-separated strings? XML? What if the dictionary has  
non-string keys or values? Gets kinda tricky.

Paul R.

>
>
> I really need to get around to playing with SQL!  Just having too  
> much fun mangling FITS files via APScript.  Anyone want to try an  
> alpha test of the prefix library soonish (in a week of two)?  I want  
> to see what b35 has in it first :-D
>
> Just some thoughts
> Robin




More information about the APBeta mailing list