Hacker News new | past | comments | ask | show | jobs | submit login

  {
    person: self.person,
  }

  RUNTIME ERROR: max stack frames exceeded.

  {
    "self": "a",
    b: self.self
  }

  STATIC ERROR, expected token identifier but got self

Looks good.



You just modeled a data structure that would normally take an infinite number of lines of JSON in three lines, so that's kind of neat.


:)

For comparison, reader variables in Common Lisp:

    CL-USER> (setf *print-circle* t)
    T

    CL-USER> '#1=(person . #1#)
    #1=(PERSON . #1#)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: