Benchmarking guard clauses
I used to think that because length/1
was slow in guard clauses and could easily be replaced by pattern matching, that all guard clauses should be replaced by pattern matching. Turns out, some of those guard clauses are really quite quick!
Read next Looking for feedback about stdlib Logger improvements!