Skip to content

std.range.primitive.{Autodecoding -> autodecodeStrings}#6932

Merged
WalterBright merged 1 commit intodlang:masterfrom
dnadlinger:autodecode-strings
Mar 23, 2019
Merged

std.range.primitive.{Autodecoding -> autodecodeStrings}#6932
WalterBright merged 1 commit intodlang:masterfrom
dnadlinger:autodecode-strings

Conversation

@dnadlinger
Copy link
Contributor

This follows Phobos naming conventions and is more self-documenting.

The field has just been added by #6930.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @dnadlinger!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + phobos#6932"

std/traits.d Outdated
import std.range.primitives : autodecodeStrings;

enum isAutodecodableString = Autodecoding && (is(T : const char[]) || is(T : const wchar[])) && !isStaticArray!T;
enum isAutodecodableString = autodecodeStrings && (is(T : const char[]) || is(T : const wchar[])) && !isStaticArray!T;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std/traits.d(6590:121)[warn]: Line is longer than 120 characters

This follows Phobos naming conventions and is more self-documenting.
@WalterBright
Copy link
Member

It's a manifest constant, we usually capitalize the first letter.

@dnadlinger
Copy link
Contributor Author

It's a manifest constant, we usually capitalize the first letter.

Not true.

@WalterBright
Copy link
Member

It seems dmd does it both ways :-)

Anyhow, it doesn't matter to me.

@WalterBright WalterBright merged commit 895b035 into dlang:master Mar 23, 2019
@dnadlinger dnadlinger deleted the autodecode-strings branch March 23, 2019 21:16
@dnadlinger
Copy link
Contributor Author

It seems dmd does it both ways :-)

DMD's coding conventions markedly differ from user-facing code. I don't particularly care either, but let's be consistent.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants