From: Ethan B. <ebl...@cs...> - 2003-07-13 01:26:02
|
Christian Hammond spake unto us the following wisdom: > gaim_accounts_find() >=20 > And there's also: >=20 > gaim_accounts_find_with_prpl_id() >=20 > So we want to match the namespace as best as possible. A nice thing about perl is that both of these probably aren't necessary... A pretty standard trick in perl is to use hashes as argument lists, so find_with_prpl_id might look like: Gaim::Accounts->find (name =3D> "PacoPaco31", prpl_id =3D> "AIM/ICQ"); (Note that this isn't exactly what the parameters would be, and I am aware of this, it's for the purpose of illustration.) I agree completely with Christian (who doesn't?) that the scripting language bindings should expose the C API as closely as possible ... but where standard language practices like this exist, I think we should use them. We want perl programmers to be comfortable using this API. Ethan --=20 "The Constitution shall never be construed to prevent the people of the United States who are peaceable citizens from keeping their own arms." -- Samuel Adams, 1788 |