Ad
  • Custom User Avatar

    ecase raises an error if none of the test cases are satisfied. Writing the function like this just ensures it will fail loudly if it is called with an input other than one of the characters #\R or #\L. It's not very important here but this sort of thing could help detect a bug (your function is being called with an unexpected input) in a large application.

  • Custom User Avatar

    Why is that best practice if in case of no #\R we still check if it is #\L