Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: All Combinaisons Fonction

From: joel:neely:fedex at: 26-Aug-2003 18:50

Hi, Andrew, It's a more-or-less-arbitrary convention I got in the habit of using as a reminder of "inner function" names and parameters that are related to those in the enclosing function. In the case at hand, .COMBINE is internal to COMBINE (with the addition of the accumulator argument, which would be annoying for the caller of COMBINE to have to remember). .COMBINE must be named in order to invoke itself recursively. Looked at another way, .COMBINE is the "real" function, and COMBINE is a public wrapper around it. .VALUES is the argument to .COMBINE that corresponds to the VALUES argument of COMBINE . In some programming cultures (e.g., LISP), .COMBINE would be called a "helper" function, and various cultures have various conventions for how to name them in a way that emphasizes the relationship. (See http://www.rebolforces.com/articles/ria/ for more examples of this convention.) -jn- Andrew Martin wrote:
> I'm intrigued by the use of "." in the names. Joel, can you tell us more > about this, please? >
-- ---------------------------------------------------------------------- Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446 Counting lines of code is to software development as counting bricks is to urban development.