Skip to main content
edited tags
Link
Adam Lear StaffMod
  • 38.7k
  • 8
  • 132
  • 155
Bumped by Community user
Source Link

Make [trait] a synonym of [traits]

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]