3 ms·
I quick check of the Ruby documentation (http://www.ruby-doc.org/core/ http://www.ruby-doc.org/core/) suggests that raise and fail are the same method. Is ther
by umjames 15y ago
I quick check of the Ruby documentation (http://www.ruby-doc.org/core/ http://www.ruby-doc.org/core/) suggests that raise and fail are the same method.
Is there an actual difference between these methods?
- avdi 15y agoNope! It's strictly a style issue. As I explain in the video (or the book if you buy it), as a result of a conversation with Jim Weirich I'm starting to use "fail" once again.