nim-stack-strings icon indicating copy to clipboard operation
nim-stack-strings copied to clipboard

Incorrectly use `raises` annotations

Open beef331 opened this issue 2 years ago • 2 comments

Presently procedures are annotated raises: [SomeDefect] this causes warnings cause raise is only meant for CatchableErrors there is no Defect tracking.

beef331 avatar Sep 26 '23 05:09 beef331

I'm surprised that there's no Defect tracking. I'll figure this out a bit later, wish I saw this before making the last release.

termermc avatar Sep 28 '23 07:09 termermc

You could tag your procs with your own Defective then on any consuming modules push forbids: [Defective], but yea that aside there is nothing.

https://nim-lang.org/docs/manual.html#effect-system-tag-tracking

beef331 avatar Sep 28 '23 07:09 beef331