Thinking about it, the trailing comments could probably be omitted. Function documentation would be more useful.