Yes I think it’s really that much better personally, having used Scala. Also in reality it would be:
log $ "Running " <> show operation <> " at " <> show time <> " for " <> show timelength
Just now I wrote such a log statement and I think it’s completely unreadable. This feature would:
- Be pervasive through any production codebase
- Matches the standard of many other languages
- Not be that high an impact on GHC (this is my intuition; not fact - I would be surprised to hear this change would not be localised)
Put into perspective: if the “cases” proposal was accepted (which I think is fine), a format string syntax seems orders of magnitudes more important with similar costs.