Skip to content

std.uni: use selective imports and document module-scope imported symbols#4365

Merged
DmitryOlshansky merged 1 commit intodlang:masterfrom
joakim-noah:uni_imports
May 27, 2016
Merged

std.uni: use selective imports and document module-scope imported symbols#4365
DmitryOlshansky merged 1 commit intodlang:masterfrom
joakim-noah:uni_imports

Conversation

@joakim-noah
Copy link
Contributor

Checked by dumping data from ldc frontend, as done for other modules, #4361.

@wilzbach
Copy link
Contributor

LGTM - you should write a script that can do this automatically for entire Phobos :)

bool empty() @property { return s.empty; }
dchar front() @property { return s.front; }
void popFront() { s.popFront(); }
bool empty() @property { import std.range.primitives : empty; return s.empty; }
Copy link
Member

Choose a reason for hiding this comment

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

This one is ugly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried sticking the import at the top of the struct but started getting template instantiation errors. Would you like me to reindent these?

@joakim-noah
Copy link
Contributor Author

you should write a script that can do this automatically for entire Phobos

That's the plan, I'd like to tie ddmd to dfix and make a tool that will automate this eventually.

@DmitryOlshansky
Copy link
Member

Auto-merge toggled on

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.

3 participants