Re: WIP: default values for function parameters
От | Dimitri Fontaine |
---|---|
Тема | Re: WIP: default values for function parameters |
Дата | |
Msg-id | A0508161-569D-4043-ADDA-D0C2CF97DED2@hi-media.com обсуждение исходный текст |
Ответ на | Re: WIP: default values for function parameters (Gregory Stark <stark@enterprisedb.com>) |
Ответы |
Re: WIP: default values for function parameters
|
Список | pgsql-hackers |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 12 déc. 08 à 15:57, Gregory Stark a écrit : > These don't solve anything. There's nothing stopping you from > defining a unary > prefix operator => or = That's why I'm preferring the common-lisp syntax of :param value, or its variant param: value. > In any case this is all weird. SQL isn't C and doesn't have random > bits of > punctuation involved in syntax. It uses whole words for just about > everything. > Anything you do using punctuation characters is going to look out of > place. Well, with the exception of function argument list, beginning with ( and ending with ) and where parameters are separated by ,. Maybe some : in there would shock users. SELECT foo(a, b, c); SELECT foo(a, :c 5); SELECT foo(a, c: 5); Not so much new punctuation characters there, 1 out of 4. - -- dim -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAklCfysACgkQlBXRlnbh1blWJQCfdLCB0B9xOzvfX2tOfoBL4cxo X4UAoI3aTK+834Cx5Wbly/snj2hQbQTX =s6w5 -----END PGP SIGNATURE-----
В списке pgsql-hackers по дате отправления: