6

These tags refer to the same concept :

In computer programming, a trait is a collection of methods, used as a "simple conceptual model for structuring object oriented programs"

A scala trait is roughly the equivalent of an interface in Java. It can be extended as it it were a class, and can contain concrete and abstract methods as well as variables.

Even if the [trait] tag description specifies scala, many questions with this tag are bound to other languages (rust, PHP, ...), which shows the confusion.

Since [traits] description is more generic and this tag has more questions tagged, I suggest to make [trait] a synonym of [traits]

2
  • And anything tagged [trait] intending the Scala meaning will also be tagged [scala], so no loss there, though I guess we could create [scala-trait]. (Can you follow only [scala][trait] together rather than individually? Does anyone want to follow [scala-trait]?) Commented Sep 4, 2014 at 14:21
  • 1
    Agreed; I just ran into this myself. However, I think it should go the other way; trait should be the primary with traits as a synonym. See, e.g., class. Commented Sep 16, 2014 at 23:58

0

You must log in to answer this question.

Browse other questions tagged .