[Chat] IronRuby

David Salgado david at digitalronin.com
Tue Jul 24 05:33:52 PDT 2007


Personally, no. I'm just against exceptions occurring as an integral part of
the core of your application. Catching a save! exception is great for
errors, but you shouldn't be throwing exceptions unless something goes
wrong.

On 24/07/07, Martin Sadler <mtsbtt at googlemail.com> wrote:
>
> So you are against raising exceptions in your controller actions?  e.g.
>
>   @person.save!
>
>
> On 24 Jul 2007, at 12:51, Tom Ward wrote:
>
> > On 24/07/07, Martin Sadler <mtsbtt at googlemail.com> wrote:
> >
> >> "In micro-benchmarks that involve raising exceptions, we are
> >> slower than
> >> Ruby 1.8.6;
> >> but if control flow on your program's critical path involves raising
> >> exceptions you may want to rethink your design :)"
> >
> > Not sure I can disagree with that really.
> >
> > Tom
> > _______________________________________________
> > Chat mailing list
> > Chat at lists.lrug.org
> > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20070724/13d2db88/attachment.html>


More information about the Chat mailing list