Programming project
Tanton Gibbs
thgibbs@hotmail.com
Tue, 08 Sep 1998 11:07:43 PDT
>Well, you dislike the Perl forms below for the sake of redundancy, but
>do you think they're more readable than using the full closed form
>construction?
I think the full closed form is more readable, especially because we
have to remember that even though the perl forms are more similar to
English, many of the best programmers do not speak English and are not
subject to our language quirks.
>>(me talking here blah blah blah)
>You've merely said you code in a structural fashion here. You haven't
>given a reason you can't code structurally in an OOPL.
>
Well, with Java, every thing was Object Based and there are no free
methods, with your shorthand idea, I believe it becomes
easier...however, I was wondering what the point would be in inheriting
from a function? Most of what you inherit are data and funcitonality.
A function has parameters, but if you change the function, why not just
write a new one?
>>> Thirdly, that value (1 in the previous case), might not be
>>> statically
>
>> ...etc...I'll address this issue in another letter. C++ does it by
>> using binders...I'll research that solution more.
>
>I haven't heard of this before. Is this a language feature?
No, it is a standard library feature, you can say something like
x = find_if( list, greater_than(7) );
and x will have the first argument greater than 7 in the list.
Naturally, the second function is a class or function or function
pointer and can change.
Tanton
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com