Loading ...
Sorry, an error occurred while loading the content.

Re: [XP] Exception Specifications

Expand Messages
  • J. B. Rainsberger
    ... One may. I do. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416 791-8603 Let s write software that people
    Message 1 of 23 , Jun 1, 2004
    • 0 Attachment
      Michael Campbell wrote:

      > On Sun, 30 May 2004 19:20:25 -0700 (PDT), Phlip <phlipcpp@...> wrote:
      >
      >>J. B. Rainsberger wrote:
      >>
      >>
      >>>If there were a way to easily say "propagate all
      >>>exceptions up the
      >>>chain," then I would do that. Unfortunately, there
      >>>are an infinite
      >>>number of ways to say this in Java. Sometimes it's
      >>>"throws SQLException"
      >>>and sometimes it's "throws FileNotFoundException"
      >>>and something it's
      >>>"throws blah, blah, blah, blah, blah".
      >>
      >>An editor which can automatically add and remove
      >>"blah" specifications is a Design Smell in the
      >>language design. If this effect could have been
      >>automated, then why isn't it automated inside the
      >>language itself?
      >
      > ? Why could one not call the fact a compiler is needed a similar
      > language design smell?

      One may. I do.
      --
      J. B. Rainsberger,
      Diaspar Software Services
      http://www.diasparsoftware.com :: +1 416 791-8603
      Let's write software that people understand
    Your message has been successfully submitted and would be delivered to recipients shortly.