Disabling certain messages

Nim generates some warnings and hints that may annoy the user. A mechanism for disabling certain messages is provided: Each hint and warning message is associated with a symbol. This is the message’s identifier, which can be used to enable or disable the message by putting it in brackets following the pragma:

  1. {.hint[XDeclaredButNotUsed]: off.} # Turn off the hint about declared but not used symbols.

This is often better than disabling all warnings at once.