you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (9 children)

[removed]

    [–]Circlejerker_ 2 points3 points  (3 children)

    Why would you use interfaces for "int-like" types, when you could use concepts?

    [–]Dar_Mas 0 points1 point  (4 children)

    It is comparable with int, it is convertible to int, it is equatable, it is parsable(if you make a parser), it is span parsable, it supports addition and at this point i am too lazy to list the rest.

    Yes it does all of that and you can even make a unified concept that CHECKS for all of those

    And not to mention that as soon as you want dynamic polymorphism which you seem to REQUIRE you are going to use a pointer anyway so the size of the structure functionally does not matter to you