Explanation of macros; Haskell macros
Espen Vestre
espen at *do-not-spam-me*.vestre.net
Tue Nov 4 03:55:18 EST 2003
"Coby Beck" <cbeck at mercury.bc.ca> writes:
> The purpose: a socket server excepts a set of specific commands from
> clients. Client commands must be verified as allowed and the arguments
> marshalled before applying the appropriate function to the arguments. I
> wanted a clean way to express this and automate the writing of error
> catching code.
>
> Usage: define-server-cmd name (method-parameters) constraints code
AOL! I have almost the same thing myself, except that my macro does
less, it just registers the code in a hash table and lets other code
do the rest of the work.
--
(espen)
More information about the Python-list
mailing list