-
-
Notifications
You must be signed in to change notification settings - Fork 419
Conversation
Thanks for your pull request and interest in making D better, @TurkeyMan! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour 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 locallyIf 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 + druntime#2742" |
src/core/internal/traits.d
Outdated
} | ||
|
||
private template AliasThisTypeOf(T) | ||
if (isAggregateType!T) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be indented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? Every constraint I've seen has been intended... that's how you know it's a constraint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, "Constraints on declarations should have the same indentation level as their declaration".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- that's horrible.
- it's already a 50/50 split in druntime. i think it actually leans in favour of this way, which is why i went with this way.
- it doesn't make sense, line-breaks always warrant an indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AIUI, it's only split because the style guide was written/followed after a lot of the code had already been already written. I'm not sure I agree with this rule either, but it's required by the style guide...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well someone can produce a PR that fixes all the code in one hit.
src/core/internal/traits.d
Outdated
} | ||
|
||
template isFunctionPointer(T...) | ||
if (T.length == 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
src/core/internal/traits.d
Outdated
} | ||
|
||
template isDelegate(T...) | ||
if (T.length == 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
src/core/internal/traits.d
Outdated
|
||
template FieldTypeTuple(T) | ||
// TODO: deprecate these old names...? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just remove them? It's core.internal
so should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a large project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FieldTypeTuple
is only used in this file. TypeTuple
is used elsewhere in druntime too, but I can make a follow-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go for it!
If these came from Phobos, I think the unittests should be moved as well. A followup PR to Phobos to import them from druntime (and remove them from Phobos) would also be prudent IMO. |
Other traits that were moved to druntime still have their unittests in Phobos because then they can still be used as examples (documentation isn't generated for core.internal). |
I have a follow-up, but it won't build until this is merged... so I haven't pushed it. |
Why has buildkite gone on holiday? All PR's are not building... |
Looks like the CI agent went offline, I can't ping the IP and Buildkite says 'lost connection'. |
The CI agents are continuously spawned based on demand. Looks like there's a problem with that logic currently, but it should very likely recover over the next the hours. Not blocking the approval of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Their unittests should be moved too, because then Phobos can be a mere alias (and public example), but it's a bit tricky if we separate implementation from their tests.
Documented tests stay in phobos, and the tests are documented tests. We would need to do a pass to move all the docs over to druntime, which would mean moving |
I think only those unittests with a |
@JinShil That is duplicated in druntime and phobos (because not public)... are you saying the unit test should exist in both places? |
With regard to package import core.internal : ModifyTypePreservingTQ; I don't know if Edit: However, my prior comment was more general. I suggest moving the unittests that are not documentation unittests to druntime where the implementation is. |
Even if |
d388a08
to
a40b60c
Compare
Oh FFS!! See what happens! I move the tests over and they depend on 90% of phobos... This is blocking me, one of you can fix this. Please be fast... |
I want to start getting paid for the time wasted by bullshit like this. I have finite lifetime, and it's worth $100/hr. |
55cba5e
to
8f0cfe2
Compare
Should merge this; everyone got bent-out-of-shape about the tests... and from here I can push the phobos PR... |
8f0cfe2
to
52894b5
Compare
Surely this is trivial? |
I need these for core.atomic...