Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Conversation

@pjstirling
Copy link
Contributor

2 Commits:

  1. A simple bug. lambda-wrap ends up with a lexical binding for *ps-gensym-counter* because the defvar appears later in the file.
  2. es-class and => are the more interesting second commit.

The new es-class parenscript form will output ecmascript classes with support for member/static-member assignment from within the body (some of which is post es-2015, but it only appears in the generated code if you use it)

(ps:ps
  (es-class HelloWorld ()
    (defun constructor ()
      (format t "hello?"))
    (setf id
	  (=> (x) x))
    (static
     (setf proto foo))))
class HelloWorld {
    constructor () {
        return format(true, 'hello?');
    }
    id = (x) => {
        return x;
    }
    static proto = foo
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant