Skip to content

Commit

Permalink
prettify function definition in bounce macro
Browse files Browse the repository at this point in the history
addresses MikeInnes#123
  • Loading branch information
uribalb authored Sep 22, 2020
1 parent 6705a0a commit 7c30bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tail.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Tail recursion that doesn't blow the stack.
For simple cases you probably want the much faster [`@rec`](@ref).
"""
macro bounce(def)
def = macroexpand(@__MODULE__, def)
def = macroexpand(@__MODULE__, prettify(def))
@assert isdef(def)
@assert isexpr(def.args[1].args[1], Symbol) # TODO: handle f{T}() = ...
f = namify(def)
Expand Down

0 comments on commit 7c30bce

Please sign in to comment.