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

Cleaned up default descriptions in reflection.jl #23543

Merged
merged 2 commits into from
Sep 1, 2017

Conversation

ChristianKurz
Copy link
Contributor

Redundant default descriptions were removed. In addtion, square brackets to denote optional arguments were replaced by default syntax:

code_native([io], f, types, [syntax]) -> code_native(io=STDOUT, f, types, syntax=att)

Redundant default descriptions were removed. In addtion, square brackets to denote optional arguments were replaced by default syntax:

code_native([io], f, types, [syntax]) -> code_native(io=STDOUT, f, types, syntax=att)
@@ -809,10 +809,10 @@ function _dump_function_linfo(linfo::Core.MethodInstance, world::UInt, native::B
end

"""
code_llvm([io], f, types)
code_llvm(io=STDOUT, f, types)
Copy link
Member

Choose a reason for hiding this comment

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

See #4902, but before a decision has been made there I think this should either be

    code_llvm([io=STDOUT,] f, types)

or

    code_llvm(io, f, types)
    code_llvm(f, types)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, i didn't remember this was still undecided. I do like your first suggestion better, as it shows the default value.
Going to switch to that version

@@ -822,11 +822,11 @@ code_llvm(@nospecialize(f), @nospecialize(types=Tuple)) = code_llvm(STDOUT, f, t
code_llvm_raw(@nospecialize(f), @nospecialize(types=Tuple)) = code_llvm(STDOUT, f, types, false)

"""
code_native([io], f, types, [syntax])
code_native(io=STDOUT, f, types, syntax=att)
Copy link
Member

Choose a reason for hiding this comment

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

att -> :att

@fredrikekre fredrikekre merged commit d4a5553 into JuliaLang:master Sep 1, 2017
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.

None yet

2 participants