Can you show me some of the many places where your app now breaks because we don't raise an exception on #try?
Also, this is why we do major releases, so we can break backwards compatibility in order to improve the API. Having #try! be the exception raising version of #try makes perfect sense to me. And I find the #try that doesn't raise exceptions much more useful in my work. Feel free to suggest a better name, but odds are low that it'll be accepted. Of course, the great thing about Ruby is that you can add your own alias. Enjoy! On Wednesday, February 27, 2013 3:43:17 AM UTC-6, will.bryant wrote: > > Can we please call the new try something else, and leave try doing what it > already does? > > The new behavior was discussed at the time #try originally went in, and, > with some dissenters, it was agreed that it was less useful for most people > because any typo now becomes an expression that returns nil rather than an > error you can see and fix. > > More generally, changing the semantics in the way that has been described > is really confusing two very different things, and makes for a huge amount > of search-and-replacing for those of us who read the changelogs and a lot > of broken apps for those who don't. > > Try isn't a great name anyway. We can just pick another. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. For more options, visit https://groups.google.com/groups/opt_out.