Message204904
| Author |
pitrou |
| Recipients |
barry, chrism, ncoghlan, pitrou, serhiy.storchaka |
| Date |
2013年12月01日.10:36:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1385894175.2297.1.camel@fsol> |
| In-reply-to |
<1385862902.21.0.262884725829.issue19837@psf.upfronthosting.co.za> |
| Content |
> The problem with adding new APIs with different names to the JSON
> module is that it breaks symmetry with other wire protocols. The
> quartet of module level load, loads, dump and dumps functions has
> become a de facto standard API for wire protocols.
Breaking symmetry is terribly less silly than having a second module
doing almost the same thing, though.
> The advantage of a separate "jsonb" module is that it becomes easy to
> say "json is the text transform that dumps and loads from a Unicode
> string, jsonb is the wire protocol that dumps and loads a UTF encoded
> byte sequence".
This is a terribly lousy design. |
|