Re: leakproof
От
Tom Lane
Тема
Re: leakproof
Дата
Msg-id
17828.1329708284@sss.pgh.pa.us
Ответ на
Re: leakproof (Don Baccus)
Список
Дерево обсуждения
leakproof Andrew Dunstan <andrew@dunslane.net>
Re: leakproof Robert Haas <robertmhaas@gmail.com>
Re: leakproof Tom Lane <tgl@sss.pgh.pa.us>
Re: leakproof Don Baccus <dhogaza@pacifier.com>
Re: leakproof Tom Lane <tgl@sss.pgh.pa.us>
Re: leakproof Don Baccus <dhogaza@pacifier.com>
Re: leakproof Yeb Havinga <yebhavinga@gmail.com>
Re: leakproof Robert Haas <robertmhaas@gmail.com>
Re: leakproof Peter Eisentraut <peter_e@gmx.net>
Re: leakproof Tom Lane <tgl@sss.pgh.pa.us>
Re: leakproof Merlin Moncure <mmoncure@gmail.com>
Re: leakproof Greg Stark <stark@mit.edu>
Re: leakproof "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: leakproof Jeff Janes <jeff.janes@gmail.com>
Re: leakproof Robert Haas <robertmhaas@gmail.com>
Re: leakproof Tom Lane <tgl@sss.pgh.pa.us>
Re: leakproof Andrew Dunstan <andrew@dunslane.net>
Re: leakproof Peter Eisentraut <peter_e@gmx.net>
Re: leakproof "A.M." <agentm@themactionfaction.com>
Re: leakproof Robert Haas <robertmhaas@gmail.com>
Re: leakproof Tom Lane <tgl@sss.pgh.pa.us>
Re: leakproof Andrew Dunstan <andrew@dunslane.net>
Re: leakproof "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: leakproof Andrew Dunstan <andrew@dunslane.net>
Re: leakproof Christian Ullrich <chris@chrullrich.net>
Re: leakproof Robert Haas <robertmhaas@gmail.com>
Don Baccus writes: > On Feb 19, 2012, at 5:42 PM, Tom Lane wrote: >> Hmm, "pure" doesn't sound bad to me. Nice and short. > Technically, "pure" is stronger than "has no side effects": > http://en.wikipedia.org/wiki/Pure_function > Result can't depend on state (for instance, database contents), either. This is the typical definition used in functional programming. Well, that condition is subsumed in our idea of an immutable function. It's not clear to me whether pure/leakproof functions are meant to be a strict subset of immutable functions, but if they are then they meet this stricter definition. On the other hand, if pure/leakproof functions don't have to be immutable but only stable, then the stricter definition corresponds to "pure immutable". That still doesn't sound too bad, as long as we define our terms clearly in the docs. regards, tom lane
В списке pgsql-hackers по дате отправления