Skip to content

Comments

Add definition of full expression#2605

Merged
dlang-bot merged 6 commits intodlang:masterfrom
andralex:spec
Mar 19, 2019
Merged

Add definition of full expression#2605
dlang-bot merged 6 commits intodlang:masterfrom
andralex:spec

Conversation

@andralex
Copy link
Member

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @andralex!

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.

@andralex
Copy link
Member Author

Urgh. Is there a way to see a diff with wraparound enabled?

@jacob-carlborg
Copy link
Contributor

jacob-carlborg commented Mar 18, 2019

It's quite difficult to review lines that are this long.

@jacob-carlborg
Copy link
Contributor

Thanks.

@CyberShadow
Copy link
Member

Urgh. Is there a way to see a diff with wraparound enabled?

M-x fill-paragraph, amend, force-push

In situations where newlines do not show up in rendered text, I found that adding them at sentence breaks makes sense for version controlled text (diffs are good), and it's not unlike how statements are generally one per line in programs.

@andralex
Copy link
Member Author

@CyberShadow I'm experimenting with Visual Studio Code...

Copy link
Member

@WalterBright WalterBright left a comment

Choose a reason for hiding this comment

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

see nits

@andralex
Copy link
Member Author

@WalterBright done

@thewilsonator
Copy link
Contributor

./spec/expression.dd:27:Note: Although the definition is straightforward, a few subtleties exist related to function literals. In the
Can we please get rid of this already?

@andralex
Copy link
Member Author

"This" being what?

@thewilsonator
Copy link
Contributor

The whitespace checker.

@andralex
Copy link
Member Author

@thewilsonator I guess it could fix the error itself. I introduced that because I was using the online editor.

BTW I see a bunch of errors in magic.d when looking at the doc builter log http://dtest.dlang.io/results/e63eaaa2e744e490663fb29307ffb6ff65b803de/b435eade3ae96f349e71710e47a353608fff6a8b/build.log @CyberShadow could they be fixed?

@thewilsonator
Copy link
Contributor

I guess it could fix the error itself.

Yes it should.

I introduced that because I was using the online editor.

Yes I do that all the time, the whitespace checker is a PITA.

BTW I see a bunch of errors in magic.d when looking at the doc builter log

They look almost like the ones I had in #2453 (comment) (see the force pushes just below).

@dlang-bot dlang-bot merged commit 8ce08dc into dlang:master Mar 19, 2019
@CyberShadow
Copy link
Member

@CyberShadow could they be fixed?

I think the authors of the relevant code are no longer maintaining it (DDox), so someone else would need to adopt / look into it. In any case, those errors are "benign", and indicate that the tool just failed to grok the syntax of that file.

@wilzbach
Copy link
Contributor

In any case, those errors are "benign", and indicate that the tool just failed to grok the syntax of that file.

Well, actually the errors are coming from libdparse trying to parse newer code from Phobos for Ddoc (<-not the c here) as we have to parse the AST again to be able to rewrite the unittests, so even if we drop Ddox, this would still be there.

See also: https://github.com/dlang/dlang.org/blob/master/ddoc/source/assert_writeln_magic.d

In theory, upgrading libdparse should do the trick, but last time I did I ran into issues: #2551

@CyberShadow
Copy link
Member

actually the errors are coming from libdparse trying to parse newer code from Phobos for Ddoc

Thanks for the correction, I did mix that up. To be fair, libdparse is also no longer maintained by its original author, as with DDox.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants