1: You know how people think the Ruby stdlib convention of `!` for mutation conflicts with the Rails convention of `!` for exceptions?
-
Show this thread
-
2: Get ready to have your mind blown.
2 replies 1 retweet 12 likesShow this thread -
3/3: Both mutation and exceptions are effectful operations. `!` in Ruby conventionally means "effectful". Grand Unified Theory.
8 replies 8 retweets 65 likesShow this thread -
Replying to @wycats
My personal rule is that `!` is used for methods which are called purely for their side effects, and whose return value is unimportant.
3 replies 0 retweets 3 likes
Replying to @jonicklas
Yeah I think that's about right.
7:14 AM - 12 Oct 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.