LeastAuthority / leastbot

0 stars 0 forks source link

Switch to ``string.format`` for announcement formatting. #16

Closed nathan-at-least closed 10 years ago

nathan-at-least commented 10 years ago

I prefer the standard string.format to % interpolation for message formatting. It allows embedding attribute lookups which reduces the need for special-case formatting functions.

Ideally all message formatters would be declarative string templates. Switching to string.format doesn't immediately provide this (see #15). Instead it's a first step that let's us specify all events as declarative string templates except for special cases.

nathan-at-least commented 10 years ago

This is implemented in tag release-0.2.1.dev0 and it pushed to master.