Add traits in Rust highlights
Question: I use type.super here because I made a similar change to the ruby syntax to apply the same style to superclasses. With this in mind, should this change be renamed to type.trait or should it be renamed to something like type.italic so the ruby syntax or any other language can all use type.italic? or maybe something else altogether.
Release Notes:
- Exposed Rust traits as
type.interfacefor individual syntax theming.
I don’t think type.super makes sense, as Rust doesn’t have a concept of inheritance (outside of supertraits).
type.trait sounds good, or maybe type.interface if we want something slightly more language-agnostic.
I don’t think
type.supermakes sense, as Rust doesn’t have a concept of inheritance (outside of supertraits).
type.traitsounds good, or maybetype.interfaceif we want something slightly more language-agnostic.
Are you happy if we have both type.interface and type.super ?
I don’t think
type.supermakes sense, as Rust doesn’t have a concept of inheritance (outside of supertraits).type.traitsounds good, or maybetype.interfaceif we want something slightly more language-agnostic.Are you happy if we have both
type.interfaceandtype.super?
I think it depends on if there is some language that uses both.
Like C# has both superclasses and interfaces, but I'm not sure exactly how those are differentiated at the syntax level (if they are at all).
If Ruby is the only one that ends up using type.super then it seems that maybe it should converge towards the others.