-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Postfix notation not typing #9509
Comments
|
In the code above, |
covered by #210 |
I was under the impression f(g) and g|>f are synonyms, so the following is strange:
julia> foo(cfs)=length(cfs)
foo (generic function with 1 method)
julia> foo2(cfs)=cfs|>length
foo2 (generic function with 1 method)
julia> @code_typed foo([1,2,3])
1-element Array{Any,1}:
:($(Expr(:lambda, Any[:cfs], Any[Any[],Any[Any[:cfs,Array{Int64,1},0]],Any[]], :(begin # none, line 1:
return (top(arraylen))(cfs::Array{Int64,1})::Int64
end::Int64))))
julia> @code_typed foo2([1,2,3])
1-element Array{Any,1}:
:($(Expr(:lambda, Any[:cfs], Any[Any[],Any[Any[:cfs,Array{Int64,1},0]],Any[]], :(begin # none, line 1:
return (length::F)(cfs::Array{Int64,1})
end))))
The text was updated successfully, but these errors were encountered: