DEV Community

Discussion on: Returning type-safe & non-nil failure in Crystal?

Collapse
 
mjb2kmn profile image
MN Mark

Renaming to something like "find_or_initialize_by_login" would be more accurate and in at least one way is the right answer. Except that it's not the right answer here which helps me see that it's the behavior of the method that is wrong. Thanks for the alternate angle on it.