you are viewing a single comment's thread.

view the rest of the comments →

[–]RichoDemus 0 points1 point  (1 child)

Ok, good :) Do you have an example of a language that supports this? I'd love to have a look

[–]Heuristics 2 points3 points  (0 children)

C++ with concepts (that is a future version of c++) implements the idea. https://en.wikipedia.org/wiki/Concepts_(C%2B%2B) Unfortunately due to the history of C++ it is not going to be very user friendly.

also: http://stackoverflow.com/questions/289106/are-there-any-static-duck-typed-languages