3 ms·
Ruby’s question marks for Boolean functions and exclamation points for mutating ones. I didn’t get t at first, but once I did, I was in love. Perfect for readab
by nunez 8y ago
Ruby’s question marks for Boolean functions and exclamation points for mutating ones. I didn’t get t at first, but once I did, I was in love. Perfect for readabiiity.
- city41 8y agoclojure has this as well and I really like it. Although `!` in clojure usually signifies the function has side effects.
- DonaldPShimoda 8y agoDo you mean like functions named `is_empty?` and `set_value!`? If I've been told right, this comes from Scheme. I first experienced it in Racket, and I absolutely love it. It's seriously one of the greatest conventions.