bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Tomas Volf
> - null is the symbol 'null Out of curiosity, what are your thoughts about using #nil instead? Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Thompson, David
Attached is a patch that adds a new (web json) module. Some may remember that I submitted a patch back in 2015 (time flies, eh?) for an (ice-9 json) module that never made it in. Well, 10 years is a long time and Guile still doesn't have a built-in JSON module. Third party libraries like guile-json

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Thompson, David
On Sat, Apr 12, 2025 at 12:01 PM Tomas Volf <~@wolfsden.cz> wrote: > > > - null is the symbol 'null > > Out of curiosity, what are your thoughts about using #nil instead? My original patch from 10 years ago did this. Mark Weaver then explained to me that #nil was added specifically for the purpose

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Arun Isaac
Hi David, Thanks for the patch. I'm just trying to understand: Why do we need a JSON module in guile itself? Isn't guile-json, the way it is as an external library, good enough? > API that can read/write JSON to/from a port using only Scheme data > types that have read syntax (i.e. no hash tabl

bug#77762: [PATCH] web: Add JSON module.

2025-04-12 Thread Thompson, David
Hi Arun, On Sat, Apr 12, 2025 at 9:39 PM Arun Isaac wrote: > > Thanks for the patch. I'm just trying to understand: Why do we need a > JSON module in guile itself? Isn't guile-json, the way it is as an > external library, good enough? I mean, Guile doesn't *need* to include anything, but JSON is