[racket-dev] [plt] Push #25403: master branch updated

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Oct 5 11:47:32 EDT 2012

On Tuesday, Carl Eastlund wrote:
> Oops, I hadn't meant to push that to the main repository without
> consulting anyone.  Hope this change is okay, it seemed weird for
> read-json to error instead of producing eof.

I think that the change is ok (and the added test shows a point for
doing it).  But the implementation is broken:

  -> (string->jsexpr "]")
  #<eof>
  -> (string->jsexpr "ndljvnldj")
  #<eof>

Also, there's no reason for a keyword there, right?

(I'm committing a fixed version.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the dev mailing list.