develooper Front page | perl.perl6.language | Postings from October 2006

Re: "Don't tell me what I can't do!"

Thread Previous | Thread Next
From:
Luke Palmer
Date:
October 2, 2006 16:57
Subject:
Re: "Don't tell me what I can't do!"
Message ID:
7ca3f0160610021657u7756476j32e752a9df4cbcc1@mail.gmail.com
On 10/2/06, Jonathan Lang <dataweaver@gmail.com> wrote:
> I'm not used to programming styles where a programmer intentionally
> and explicitly forbids the use of otherwise perfectly legal code.  Is
> there really a market for this sort of thing?

This reminds me of the endless student "proofs" that trisect the angle
using euclidean geometry; i.e. the fact that people won't accept that
you can prove something is impossible.

The same philosophy applies here: if you don't allow code that forbids
other code from doing something, then you are forbidding code from
doing something, violating your own principle.

However, all this philosophical gobbledygook doesn't mean much in the
real world.

Another interesting note is that you could consider a policy-based
object model to be forbidding certain code.  But I prefer to think of
it as a more accurate definition: "you are not a hatter unless the
hats you make are hats".

Luke

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About