It's true, when compared to the C++ implementation, checked Exceptions in
Java are a considerable improvement. The list of complaints levelled against
the "feature" in C++ is exceptional!

If you want references as to the Exception saga in C++, then your best bet
is the "Exceptional C++" books.  Much of their content is freely available
online via the articles on GotW: http://gotw.ca/publications/index.htm

The C/C++ Users journal and Dr Dobbs' Journal are also excellent sources.


Nevertheless, checked exceptions (even when handled better than C++) are
still a lie.  Not to the compiler but to the developer, which is far worse!
 They're a lie about the full range of exceptions a function might throw,
and they're a lie about how well a caller might deal with such an exception.

<http://gotw.ca/>

2010/9/23 Cédric Beust ♔ <[email protected]>

>
>
> On Thu, Sep 23, 2010 at 11:42 AM, Kevin Wright 
> <[email protected]>wrote:
>
>> However, this is not the logical fallacy of appealing to authority.  It's
>> an observation that the very people who shaped the C++ language and added
>> exception declarations have themselves declared that it was a bad decision.
>>
>
> The original designers have disowned the idea as being, ultimately, unfit
>> for purpose.
>
>
> Mmmh... are you sure about that? Do you have references? I would be
> extremely surprised if any of these three influential C++ gurus ever
> disowned exceptions. Or maybe they meant to disagree with the specific C++
> implementation?
>
> Looking forward to reading whatever you read about this topic.
>
> - declarations give the false impression that they are the only Exceptions
>> that might be thrown
>
>
> Yup, it's a problem that completely disappears with checked exceptions: no
> more lying to the compiler nor to the developers.
>
> There was only positive thing that came out of C++...
>
>
> Ah come on, now, that's just bad trolling. I'm not a big fan of C++ these
> days (I used to) but its influence and the plethora of ideas and language
> designs that it generated is being used in new languages today and for many
> years to come.
>
> --
> Cédric
>
>
>  --
> 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]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>



-- 
Kevin Wright

mail / gtalk / msn : [email protected]
pulse / skype: kev.lee.wright
twitter: @thecoda

-- 
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