3 ms·
Why isn't there a decent parser in the standard library? More than 50% of programs will probably touch json at this point.
by patmorgan23 2y ago
Why isn't there a decent parser in the standard library? More than 50% of programs will probably touch json at this point.
- tialaramex 2y agoRust's stdlib is (at least notionally) forever. Things in the standard library (including core and alloc) get deprecated but must be maintained forever, which means that "at this point" isn't enough. In 2003 those programs would have used XML, in 1993 probably .INI files. Are you sure that despite all its shortcomings JSON is the end of history? I don't believe you. If you want "at this point" you can, as software does today, just use a crate. Unlike the stdlib, if next week Fonzie files are huge and by 2026 "nobody" is using JSON because Fonzie is cool, the JSON config crate merely becomes less popular.