I spent about an hour tonight tracking down a weird bug where it turned out I had a proc with a return value, but I forgot to return a value. This compiled fine, but ran wrong. I assume what happened is that the implicit return value was returned, with the default value for the type. Should it perhaps be a compiler error if no value is returned and the return value is never assigned to anywhere in the proc? Or at least a warning?
In my experience, this is an issue you run into when lacking experience using nim. Then it stop giving you problems. Could be a good idea to warn under these circunstances.