You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2018. It is now read-only.
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):
The first being common is largely a case of us being lazy, I think. The second style is more clearly consistent with all other guidelines. It just makes an already verbose syntax even more verbose, which makes me sad.
Personally I prefer second option. Although it verbosity, it is more consistent and clear. Also clarity/verboseness ratio is good enough to consider it as a good practise.
Two options:
Foo<Bar=Baz>
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
):(?<!type )(?<![:&$.])(?<![:={] )(?<!\blet )\b[A-Z][A-Za-z]+ = [A-Z<]
(approximately 130 genuine matches)(?<!type )(?<![:&$.])(?<![:={] )(?<!\blet )\b[A-Z][A-Za-z]+=[A-Z<]
(approximately two genuine matches)The text was updated successfully, but these errors were encountered: