hi,
when reading through our documentation i observed an inconsistency in our terminology: which is the preffered term?
the module tree reference and the reference manual seem to use function, however the beginners tutorial uses method, and claims in http://pike.ida.liu.se/docs/tutorial/methods/
Most programming languages allow you to divide your program into smaller parts. These can be called ßub-routines", "procedures", "functions" or "methods". In Pike, we use the term "method".
i believe this is simply not true, as far as i remember we have always used the term function, and the name of the respective keyword strongly suggests that we should stick with that.
comments?
All functions are functions. Some functions are methods (when they are part of an object). It is helpful to not view the module tree as objects, and refer to these methods as functions.
/ Martin Nilsson (DivX Networks)
Previous text:
2004-09-11 01:17: Subject: pike terminology: method or function?
hi,
when reading through our documentation i observed an inconsistency in our terminology: which is the preffered term?
the module tree reference and the reference manual seem to use function, however the beginners tutorial uses method, and claims in http://pike.ida.liu.se/docs/tutorial/methods/
Most programming languages allow you to divide your program into smaller parts. These can be called ßub-routines", "procedures", "functions" or "methods". In Pike, we use the term "method".
i believe this is simply not true, as far as i remember we have always used the term function, and the name of the respective keyword strongly suggests that we should stick with that.
comments?
/ Brevbäraren
Unfortunately I think there are too many cases when that distinction isn't made, i.e. functions in objects are very often still called "functions". I think it's better to update the tutorial to agree with reality.
/ Martin Stjernholm, Roxen IS
Previous text:
2004-09-11 01:30: Subject: pike terminology: method or function?
All functions are functions. Some functions are methods (when they are part of an object). It is helpful to not view the module tree as objects, and refer to these methods as functions.
/ Martin Nilsson (DivX Networks)
pike-devel@lists.lysator.liu.se