Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Java Checked Exception is BAD! Date: Thu, 4 Feb 2016 15:16:48 -0500 Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <00ab9f4e-0f06-48ec-9a65-1a150c129a39@googlegroups.com> <3e5ccef4-d91a-4d66-be03-c8f0b58df128@googlegroups.com> <56b382dd$0$23867$e4fe514c@news.xs4all.nl> <56b3ae12$0$23750$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 4 Feb 2016 20:14:11 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2d081e2f7155c28005d4472f67c2f43d"; logging-data="10247"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c3Q5eaEGPlSHrDHR02vT+" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <56b3ae12$0$23750$e4fe514c@news.xs4all.nl> Cancel-Lock: sha1:O4TTywidYXnMW3Yy8EIxKT+b21o= Xref: csiph.com comp.lang.java.programmer:33595 On 2/4/2016 3:01 PM, Silvio wrote: > [...] > The current consensus is that "fail fast and hard" is mostly better than > laborious attempts for partial repairs at various levels. Checked > exceptions promote the latter and make the former very hard. "Fail fast and hard" is a consensus? Since when? Long years ago (before Java, even before C was well-known), I worked on air traffic control systems. "Fail fast and hard" was not an option, not nohow. Today, people are developing software for the self-driving car you may buy in a year or two. Would you encourage them to "Fail fast and hard" while that car is carrying you along the Autobahn? Perhaps Java is banned from nuclear plants not because of problems with the language, but because it attracts people with ideas like yours. > That with the fact that exceptions are highly overused in the standard > library makes checked exceptions a pain in the ass. One of the many > reasons I am glad I switched to Scala for all new projects years ago. 1) Agreed that some of the library classes use exceptions poorly. 2) If you've abandoned Java, why waste your time on this forum? -- esosman@comcast-dot-net.invalid "Don't be afraid of work. Make work afraid of you." -- TLM