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

predicate function negation with ComposedFunction #44752

Merged
merged 7 commits into from
Apr 12, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move fallback show_function back to show.jl (from operators.jl)
  • Loading branch information
markmbaum authored and vtjnash committed Apr 7, 2022
commit 511815b99795dce4f4cc927a4404d4e1a5040541
2 changes: 0 additions & 2 deletions base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,6 @@ function show_function(io::IO, c::ComposedFunction, compact::Bool)
end
end

show_function(io::IO, x, ::Bool) = show(io, x)

"""
!f::Function

Expand Down
3 changes: 3 additions & 0 deletions base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,12 @@ function show_function(io::IO, f::Function, compact::Bool)
end
end

show_function(io::IO, x, ::Bool) = show(io, x)

show(io::IO, f::Function) = show_function(io, f, get(io, :compact, false)::Bool)
print(io::IO, f::Function) = show_function(io, f, true)


function show(io::IO, f::Core.IntrinsicFunction)
if !(get(io, :compact, false)::Bool)
print(io, "Core.Intrinsics.")
Expand Down