On Wed, Feb 20, 2013 at 9:13 AM, Boyko Bantchev <[email protected]> wrote: > On 20 February 2013 04:01, Raul Miller <[email protected]> wrote: >> You have not specified what your definition of closure is. > > In fact I did, and the definition is not 'mine' – it is the one > commonly assumed in programming. It is to be noted, though, that > I did not even need to do so, again because there is a general > understanding about what closures are.
Where? >> If you will not provide clear definitions, and you routinely reject >> definitions I suggest you leave me no other choice. > > I have not seen a single definition from you. Instead, I have seen > several assertions that sharply contradict not only established > terminology but even common sense. I thought I had provided some definitions (albeit, not for "closure"). But, ok, rather than reiterating my attempts which you have rejected, here's a definition for closure: A "closure" is a reference to a subroutine combined with a reference to an environment which provides mutable definitions for the free variables (names whose definitions are supplied outside the body of the subroutine) referenced from that subroutine. That is the typical definition for the term, in the context of programming language discussions. Some people use the word "function" here instead of "subroutine", but in this context there is no significant difference between the two terms. Some people use the word "method" here, instead of "subroutine" but again, in this context there is no significant difference between the terms. That said, if we are speaking of functional programming we are using a different definition for "function" - there we are using "function" to characterize a computer operation as a mathematical function (and we are ignoring or neglecting any issues which would conflict with this characterization). -- Raul P.S. “Common sense is the most widely shared commodity in the world, for every man is convinced that he is well supplied with it.” ― René Descartes ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
