by wisnoskij · 4y ago · 0 comments
As a library user, you can't copy-paste a line for a type you just created in a library you don't maintain.
Being able to do what you describe lets a maintainer create an interface for all the future types that satisfy given requirements.
print("Hello")
print("Hello2")
print("Hello3")
print("Hello4")
print("Hello5")
(which I partially copy-pasted above) but I use a for-loop instead.