Comment

Comment by bilalq

The problem with interfaces is that you can't implement any operations within them. Traits and modules do allow for that.

Regardless, compositition makes more sense for this case anyway.

parent bilalq 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton