On Mon, Sep 20, 2010 at 2:34 AM, Reinier Zwitserloot <[email protected]>wrote:

> I don't think he invented it. For those who have an interest in it, a
> better alternative is, instead of declaring that you return "A",
> instead forget A and declare that you return "RuntimeException". Then,
> advise people to use:
>

I think you misunderstood my post.  I was not intending that he invented the
"sneaky" throws.  I was using that as a great example of a "literate
program."   Not only does it provide the functionality that the compiler
needs, but it does a very good job of presenting the subject to other
coders.  Without having to rely on "compiler plugin magic happens here."

And yes, I'll stand by my comparison of English/music to programming.  You
twist my point into saying that "all programs should stand as a work of
art."  I don't believe that any more than I believe that "all novels are
works of art."  I contend that the best of each category likely fit that
bill.

To follow your definition that programming is all about "how" to write
something.  Have you not considered poetry?  That is often specified down to
the number of syllables allowed.   Does this make Haiku or other forms of
writing less expressive?  Of course not.  Not any more than a very skilled
Java programmer/writer can be expressive in Java.  (Which is why I brought
up James' post.)

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to