naming things: `JSON3.parse(str::String)` instead of `JSON3.read`?
ericphanson opened this issue · comments
I often end up doing things like JSON3.read(read(...))
which looks a bit weird (e.g. in https://julialang.zulipchat.com/#narrow/stream/237221-biology-health-and-medicine/topic/lookup.20type.20of.20drug.20from.20name.3F/near/215879417). I think the action that JSON3.read
does on a string is parsing, and JSON3.parse(read(...))
would make more sense and be more readable.
Personally I like the symmetry of JSON3.read
and JSON3.write
. I don't feel too strongly either way though.