Ad
  • Custom User Avatar

    You may be right, but I like to avoid boilerplate whenever possible. In my opinion it enhances readability to use situational syntactic sugar like this: because it can only be used in certain circumstances, its use highlights that you are in those circumstances.

  • Custom User Avatar

    Perfectly servicable and efficient. Wouldn't best practices encourage adding a return line? Obviously not necessary for such simple code.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution