Is Compat.jl worth it for the `public` keyword?

I think you’d use @public var"@mymacro", but I imagine you could also change the definition to support this without the var.

julia> macro public(ex)
           if VERSION >= v"1.11.0-DEV.469"
               args = ex isa Symbol ? (ex,) : Base.isexpr(ex, :tuple) ? ex.args : error("something informative")
               esc(Expr(:public, args...))
           else
               nothing
           end
       end
@public (macro with 1 method)

help?> @public
  No documentation found for private symbol.

  @public is a macro.

  # ...

julia> @public var"@public"

help?> @public
  No documentation found for public symbol.

  @public is a macro.