[Interop-dev] NetworkGraph: Infinite weight

Henning Rogge (spam-protected)
Fri Jul 3 19:03:40 CEST 2015


On Fri, Jul 3, 2015 at 7:02 PM, Nemesis <(spam-protected)> wrote:
> I checked recently the JSON RFC, which explicitly forbids Infinity and NaN.
> See here: https://tools.ietf.org/html/rfc4627
>
> "Numeric values that cannot be represented as sequences of digits (such
> as Infinity and NaN) are not permitted."
>
> Even though some implementations allow it, I tried to process a JSON
> structure which contained Infinity with javascript and it raised an
> exception.
>
> So, for these two reasons, and because NetJSON would be based on the
> JSON RFC, it probably makes sense to explicitly forbid links with
> infinite weight.
>
> It would also simplify a lot consumer implementations, which is
> something I believe we should strive for.

Good point...

Henning




More information about the Interop-dev mailing list