Archive of UserLand's first discussion group, started October 5, 1998.

Re: Naming of method parameters in the XML-RPC spec...

Author:Jeff Gilbert
Posted:4/9/1999; 12:02:44 PM
Topic:Naming of method parameters in the XML-RPC spec...
Msg #:4921 (In response to 3003)
Prev/Next:4920 / 4922

Having parameters unnamed and in a specific order is the way parameters are passed to functions in "traditional" programming languages such as 'C' or Pascal. This is part of how an interface is defined to describe the services offered by a server.

Using a -like method for passing parameters would certainly be useful and would be similar to overloaded methods in an object-oriented language like C++.

I guess you could define the interface to your method as taking a single which could then be extended in the future. If an old client uses an earlier definition of the then you (the server) would have to provide default values for any unspecified name/value pairs.

This page was archived on 6/13/2001; 4:49:17 PM.

© Copyright 1998-2001 UserLand Software, Inc.