comp.lang.ada
 help / color / mirror / Atom feed
* Help understanding the benefits of Ada's exception model
@ 2014-06-26 11:42 Patrick
  2014-06-26 14:28 ` Patrick
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick @ 2014-06-26 11:42 UTC (permalink / raw)


Hi Everyone

I love Ada and I am so grateful for the help I have received on this list. This post is slightly negative and I really hope I will not offend those that have been so good to me....

With Ada we can define exceptions and they have an explicit place in the block structure. It appears that this form is called unchecked exceptions.

There is also checked exceptions, like in C:

if (f = fopen("someFle")) { do something ... }

Assuming that a valid test can be created, what is wrong with checked exceptions ? 

I love Ada but I have found that I don't need a large part of it as a single developer writing single threaded code.
   
Tying my code to a built in exception model means I have to choose other languages that have built in exceptions models like C++(yuck) if I want to port and that doesn't mean that there models work the same way. Checked exceptions look easy to port to virtually any language not just C.

Please help me understand the benefits of Ada's model.

Thanks for reading-Patrick


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-26 23:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 11:42 Help understanding the benefits of Ada's exception model Patrick
2014-06-26 14:28 ` Patrick
2014-06-26 15:22   ` Dan'l Miller
2014-06-26 15:25   ` G.B.
2014-06-26 15:52     ` Patrick
2014-06-26 16:55     ` Niklas Holsti
2014-06-26 23:27       ` Georg Bauhaus
2014-06-26 16:08   ` Jeffrey Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox