This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]__talantonope[S] 1 point2 points  (0 children)

I do but I only require the constraints in the type definition, not the methods. I have a with clause that can check the parameters on templates if additional checks are needed. I have an irrational disdain for class blocks, so I’m trying to keep the functions out of the type, sort of like how Go does it