On Fri, Jan 3, 2020 at 5:05 AM Amirouche Boubekki
<xxxxxx@gmail.com> wrote:
>
> > > I know Gauche supports json [1], and if this srfi was to be added to
> > > Gauche, I would love to see Gauche's implementation reused with a thin
> > > wrapper on top to provide the srfi api. Other schemes that already
> > > support json might want to go the same route.
> > >
> >
> > I will extend the early draft to make it possible to implement Gauche interface.
>
> I made a mistake. Sorry, I will not make it *easier* to implement
> Gauche JSON interface or other specific implementations, in this SRFI.
> It is already possible to implement Gauche library with the current
> code. I believe the purpose of a standard is to have some things that
> are similar or prolly the same across implementations, in order to
> make libraries and program portable across implementations.
I was thinking the other way around. But I didn't do my homework.
Given the status of gauche and chibi's json implementation at least,
it looks like yours is superior. So yeah reimplement scheme-specific
json api on top of the srfi's code may be better than srfi api on top
of scheme-specific implementation.
It is a good idea to try reimplementing other json interface with the
srfi code though as an exercise to see how flexible or capable the
srfi interface is.
> And also, to make the life of the user *easier*.
No doubt about that, assuming that the srfi ends up in r7rs-large. For
normal srfis, it's still up the scheme implemeters to choose to pick
it up or not. And duplcating json implemetation could be a concern.
This is just my guess though I'm not responsible for any significant
scheme implementation.
--
Duy