Ad
  • Default User Avatar
    function wholeInt() { '' }
    

    Error: You cannot use general math operators, or regex

    ???

  • Custom User Avatar

    If you're going to forbid certain things, it helps solvers immensely if the tests give accurate failure messages.

    When I have a literal string in my solution, I get "Error: You cannot use general math operators, or regex", which points in a totally wrong direction if I also have "&" in it. Because "&" might fall under "math operators such as [+-*/%]".

    Be precise, both in specifications and in error messages. "such as" and "some parts" have no place in specifications.

  • Custom User Avatar

    This has been done. It was called "additionless addition" or something.