Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

Specific associated types: Foo<Bar=Baz> or Foo<Bar = Baz>? #41

@chris-morgan

Description

@chris-morgan

Two options:

  1. Foo<Bar=Baz>
  2. Foo<Bar = Baz>

I think the second is more consistent with what we’ve done in the past and prefer it myself, but the first appears at present to be considerably more common in the Rust repository. (Bear in mind—this note existing because I disagree with the actions taken, of course—that this expresses the opinions of a very few!)

Sample regular expressions to search with to find probable matches (PCRE needed, I used ag):

  1. (?<!type )(?<![:&$.])(?<![:={] )(?<!\blet )\b[A-Z][A-Za-z]+ = [A-Z<] (approximately 130 genuine matches)
  2. (?<!type )(?<![:&$.])(?<![:={] )(?<!\blet )\b[A-Z][A-Za-z]+=[A-Z<] (approximately two genuine matches)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions