Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33672

Re: Checked Exceptions in Java

Newsgroups comp.lang.java.programmer
Date 2016-02-08 05:33 -0800
References <checked-20160206164839@ram.dialup.fu-berlin.de> <n95lhr$oak$1@reader1.panix.com> <7305d452-ad5e-4bc5-8305-097fe334332c@googlegroups.com>
Message-ID <0b2d912b-bfe3-4e93-bc60-819ab2e8ce32@googlegroups.com> (permalink)
Subject Re: Checked Exceptions in Java
From Eric Douglas <e.d.programmer@gmail.com>

Show all headers | View raw


On Saturday, February 6, 2016 at 4:46:16 PM UTC-5, Lew wrote:
> Now *that's* a solid, rational, engineeering argument!
> 
> Not.
> 
> The language doesn't tell the programmer how to program with Java any more than with any other programming language, so that premise is false
> 
> Checked exceptions are a *programmer's* decision to use or not. If an API writer included checked exceptions, they had a reason to. You might bitch and whine and moan and gripe and cry about it, but they did it for a reason. Just like they did for the argument and return types, and the name of the method.
> 
> If you don't like it, don't use that API.
> 
> The fact is that checked exceptions are very useful to indicate out-of-band conditions for a method that a client should, and in the mind of the author, must handle. Checked exceptions are the API's way of letting you, the client programmer, know what those out-of-band conditions. And thank goodness, or there'd be random, unpredictable, seen-first-in-production crashes when those predictable exceptions happen!
> 
> People who say "try..catch" "just sucks" are ignoring decades of advances in programming-language design. People who decry checked exceptions in Java have utterly failed to understand either their rationale and whom to blame for them.
> 
> -- 
> Lew

+1

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Checked Exceptions in Java ruben <ceo@iran.gov> - 2016-02-06 20:37 +0000
  Re: Checked Exceptions in Java Lew <lewbloch@gmail.com> - 2016-02-06 13:45 -0800
    Re: Checked Exceptions in Java ruben <ceo@iran.gov> - 2016-02-08 01:31 +0000
      Re: Checked Exceptions in Java Lew <lewbloch@gmail.com> - 2016-02-07 21:47 -0800
        Re: Checked Exceptions in Java ruben <ceo@iran.gov> - 2016-02-15 11:39 +0000
          Re: Checked Exceptions in Java Eric Douglas <e.d.programmer@gmail.com> - 2016-02-15 05:03 -0800
        Re: Checked Exceptions in Java ruben <ceo@iran.gov> - 2016-02-15 11:42 +0000
      Re: Checked Exceptions in Java Eric Douglas <e.d.programmer@gmail.com> - 2016-02-08 05:34 -0800
        Re: Checked Exceptions in Java ruben <ceo@iran.gov> - 2016-02-15 11:41 +0000
        Re: Checked Exceptions in Java ruben <ceo@iran.gov> - 2016-02-15 11:44 +0000
    Re: Checked Exceptions in Java Eric Douglas <e.d.programmer@gmail.com> - 2016-02-08 05:33 -0800

csiph-web