Good point. I've never measured the compiler's performance for using interface vs. type. I see people saying interface inheritance is easier to type-check than type interception, which sounds reasonable.
I think if there's quite a lot of inheritance in the code base, it makes good sense to prefer interfaces that look more object-oriented.
I'll do some more research and maybe update the post later. Thank you!
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good point. I've never measured the compiler's performance for using interface vs. type. I see people saying interface inheritance is easier to type-check than type interception, which sounds reasonable.
I think if there's quite a lot of inheritance in the code base, it makes good sense to prefer interfaces that look more object-oriented.
I'll do some more research and maybe update the post later. Thank you!