You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> using JSON
Warning: using JSON.parse in module Main conflicts with an existing identifier.
The function parse in Main parses a string containing Julia code to an AST Expr.)
Probably the best solution is to simply not export it, so that users call it as JSON.parse. Then, for symmetry, you could rename print_to_json to JSON.print (and not export print).
(On the subject of renaming, it seems more Julian to simply have json(x) instead of to_json(x).)
The text was updated successfully, but these errors were encountered:
The function
parse
in Main parses a string containing Julia code to an ASTExpr
.)Probably the best solution is to simply not
export
it, so that users call it asJSON.parse
. Then, for symmetry, you could renameprint_to_json
toJSON.print
(and not exportprint
).(On the subject of renaming, it seems more Julian to simply have
json(x)
instead ofto_json(x)
.)The text was updated successfully, but these errors were encountered: