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

Created an actual table [Manual,Scope of Variables] #29789

Merged
merged 3 commits into from Oct 25, 2018
Merged

Created an actual table [Manual,Scope of Variables] #29789

merged 3 commits into from Oct 25, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 24, 2018

It looks clearer to me, by showing immediately the constructs the document talks about.
In the the original tree , a complete beginner may confuse which are the constructs, and which are the types of scope

Also removed the mention "(don't allow nesting)" in the 5th branch of the tree, as that is already stated by the 1st branch of the tree
(It had actually confused me https://discourse.julialang.org/t/scope-of-struct-and-macro/16714 )

It looks clearer to me, by showing immediately the *constructs* the document talks about. 
In the the original tree , a complete beginner may confuse which are the constructs, and which are the types of scope

Also removed the mention "(don't allow nesting)" in the 5th branch of the tree, as that is already stated by the 1st branch of the tree
(It had actually confused me https://discourse.julialang.org/t/scope-of-struct-and-macro/16714 )
@ghost ghost changed the title Created an actual table Created an actual table [manual,Scope of Variables] Oct 24, 2018
@ghost ghost changed the title Created an actual table [manual,Scope of Variables] Created an actual table [Manual,Scope of Variables] Oct 24, 2018
@ghost
Copy link
Author

ghost commented Oct 24, 2018

I've no idea what those "checks" failed below mean, I'm just editing the documentation, by following the "Edit on Github" link from https://docs.julialang.org/en/v1/manual/variables-and-scoping/#man-scope-table-1

@ararslan
Copy link
Member

Welcome and thanks for the contribution!

If you click the "Details" link next to each of the continuous integration checks, you can see a log for the job that ran the tests. In this case, they're failing because your changed introduced trailing whitespace. You can fix that by deleting the spaces at the end of the line on lines 24 and 25 of the file.

@ghost
Copy link
Author

ghost commented Oct 24, 2018

Thanks @ararslan !
I just fixed the whitespaces. Why it's taking so long for Travis CI building process? ( 5 min and still counting). Is it building the entire Julia implementation, or just the whole documentation?

@fredrikekre
Copy link
Member

It needs to build Julia in order to build the docs.

@ghost
Copy link
Author

ghost commented Oct 24, 2018

Wow, that sounds overkill (and waste of github resources), from my newbie perspective. I think there should be leaner ways to check doc changes only

@KristofferC
Copy link
Member

I think there should be leaner ways to check doc changes only

The doctests need to be run and to do that you need to have Julia built to run it.

@ghost
Copy link
Author

ghost commented Oct 24, 2018

If the changes only affect documentation, cannot you use an already built version of Julia to run the doctests?

@KristofferC
Copy link
Member

No :). It would be more productive to focus on the content of the PR instead of how CI is done.

(mutable) [`struct`](@ref), [`macro`](@ref) | local | other global
[`for`](@ref), [`while`](@ref), [`try-catch-finally`](@ref try), [`let`](@ref) |local | other local
functions (either syntax, anonymous & do-blocks) | local | other local
comprehensions, broadcast-fusing | local | other local
Copy link
Member

Choose a reason for hiding this comment

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

The three last rows here should state other local or global as per the old docs I assume?

Copy link
Author

@ghost ghost Oct 25, 2018

Choose a reason for hiding this comment

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

Ah, how could I miss that :( !!
(but I knew those 3 constructs can nest in either global or local scopes).
Thanks for checking

@fredrikekre fredrikekre added docs This change adds or pertains to documentation backport pending 1.0 labels Oct 25, 2018
@fredrikekre fredrikekre merged commit 679c5b5 into JuliaLang:master Oct 25, 2018
@ghost
Copy link
Author

ghost commented Oct 25, 2018

👏

@ghost ghost deleted the patch-1 branch October 25, 2018 23:02
KristofferC pushed a commit that referenced this pull request Oct 29, 2018
KristofferC pushed a commit that referenced this pull request Nov 2, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
KristofferC pushed a commit that referenced this pull request Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants