fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

András N.

Were traits in part inspired by first-class modules?

I know the first compiler was in OCaml, and I just learned about the latter, it seems like there are some shared ideas there.

@sunarch They feel to me really close to Haskell typeclasses.

@manpacket @sunarch yeah, typeclasses are the comparison I've usually heard

@sunarch: typeclasses are probably the *direct* inspiration. Functors solve a similar problem, but in a much more verbose and (imo) less elegant way (,but maybe it is some "Zen of StandardML" that I dont quite understand deeply enough)