Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use quotation marks consistently in messages #1011

Closed
adamralph opened this issue Mar 9, 2017 · 13 comments
Closed

Use quotation marks consistently in messages #1011

adamralph opened this issue Mar 9, 2017 · 13 comments
Assignees
Milestone

Comments

@adamralph
Copy link
Contributor

adamralph commented Mar 9, 2017

Sometime we use double quotes, sometimes single, sometimes none. Let's make this consistent.

See https://github.com/FakeItEasy/FakeItEasy/pull/1001/files#r104390257

@thomaslevesque
Copy link
Member

And there are also places where we use no quotes at all.

@blairconrad
Copy link
Member

So...

Double? Single?

I kind of like single. If nothing else, they're easier to search for and easier to write inside double-quoted strings.

@thomaslevesque
Copy link
Member

I like single quotes too

@adamralph
Copy link
Contributor Author

👍 to singles.

@adamralph adamralph changed the title Use single/double quotes consistently in messages Use single quotes consistently in messages Mar 9, 2017
@thomaslevesque
Copy link
Member

BTW, quotes aren't the only thing that's inconsistent when we include type names in messages. Sometimes we use .FullNameCSharp(), but sometimes not. So we sometimes have things like IFoo<Bar>, and sometimes IFoo`1[Bar].

Even though the C# format looks nicer, I don't think we should use it. FakeItEasy can be consumed from VB.NET too, not just C#, so there's no reason to use the C# format over the VB format. For consistency, we should probably stick to the CLR format.

@blairconrad
Copy link
Member

I'm fine with dropping the C# formatting.

Unfortunately, I'm now wondering whether we shouldn't also drop the quotes altogether. It's not like we're going to have a space in the middle of a type name or anything. Nor would a type be null. There should be no difficulty interpreting which type we're talking about when reading a message.
I guess I'm raising the spectre of "no quotes" again. But if you still prefer single, that's fine too.

@thomaslevesque
Copy link
Member

Well, we considered whether to use single or double quotes, but I guess we forgot about the "no quotes" option... Now that you mention it, I think I like it.

@blairconrad
Copy link
Member

I guess we forgot about the "no quotes" option.

I had.

@adamralph
Copy link
Contributor Author

  • CLR formattting rather than C# formatting: 👍 agreed.
  • Dropping quotes for terms which we know will never contain spaces: 👍 agreed

@blairconrad
Copy link
Member

I can pick this up, but wonder if it shouldn't be two issues after the last comment.

  1. single (or no) quotes
  2. CLR formatting

@adamralph
Copy link
Contributor Author

👍 to two issues.

@thomaslevesque
Copy link
Member

Yes, it makes sense to split

@blairconrad blairconrad changed the title Use single quotes consistently in messages Use quotation marks consistently in messages Apr 9, 2017
@blairconrad blairconrad added this to the 3.3.0 milestone Apr 9, 2017
@blairconrad
Copy link
Member

This issue was fixed in Release 3.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants