JuliaLang/julia

`:(($+)(1,2))` prints as `:((+)(1,2))` which is `:(1 + 2)`

Open

#19,260 创建于 2016年11月8日

在 GitHub 查看
 (8 评论) (0 反应) (0 负责人)Julia (5,773 fork)batch import
display and printinghelp wanted

仓库指标

Star
 (48,709 star)
PR 合并指标
 (平均合并 20天 6小时) (30 天内合并 157 个 PR)

描述

julia> :(($+)(1,2))
:((+)(1,2))

julia> :((+)(1,2))
:(1 + 2)

The printing for expressions should take into account whether something is an actual function spliced into the AST or just a symbol and print the former with a $.

贡献者指南