By Deane Barker on November 1, 2013
Slash is a new programming language that promises to marry the simplicity of PHP (embed a bunch of code in a file and call it directly), but with the elegance of Ruby or Python.
Regardless of that, I found this code snippet from their compiler interesting:
-if git ls-files | grep -v Makefile$ | xargs grep -n '\t'; then - echo "There are hard tab characters in the following source files:" - echo - git ls-files | grep -v Makefile$ | xargs grep -n '\t' - echo - echo "Failing build." - exit 1 -fi
They are enforcing coding standards in the compiler — if you have tabs in your file, the build simply fails. (The commit was titled “fuck it,” if that gives you any insight on it.)
Ken Arnold talked about this exact same thing in “The Best Software Writing“: