| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: OO versus RDB
Marshall wrote:
> Adrian Hey wrote:
>
>>Marshall wrote: >> >>>What I said is true: a function that doesn't read any >>>external variables but does write to them will have its >>>return value entirely determined by its parameters. >> >>What's wrong about this statement is that such things are not functions. >>If you want to substitute another word (like "procedure") that would be >>fine.
>>>This is just arguing about what the definition of the term "pure" ought >>>to be. Not very interesting. >> >>Perhaps you'd find it a little more interesting if it was your job to >>write an optimising compiler that doesn't break programs.
Observable effect, on the other hand, is affected. Thus, such a function is not a pure function according to the definitions I have seen. Now, if the variable were a static variable not observable outside the function, then it would be pure. Received on Sun Jul 09 2006 - 11:54:42 CDT
![]() |
![]() |