Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign core #613

Open
b-studios opened this issue Sep 26, 2024 · 1 comment
Open

Redesign core #613

b-studios opened this issue Sep 26, 2024 · 1 comment

Comments

@b-studios
Copy link
Collaborator

Every few months/years we redesign core. It is again time.

There are some universally accepted requirements, some nice to haves, and some controversial things.

Universally Accepted

  • move away from handlers to delimited control
  • delimited control should ALWAYS be bidirectional
  • reset binds a label / prompt, shift refers to a label.
  • have separate invoke
  • have separate make or similar for constructor calls

Nice to have

  • group arguments and parameters in separate data type
  • add syntactic category of "binder"
  • track the original source location in the AST

Controversial

  • shallow resumptions
  • replace run by let x = run s; s
  • also include expression level if, defs, with separate calling convention.
  • what about subtyping? Where do we allow it?
  • bound type variables as DeBruijn
@jiribenes
Copy link
Contributor

Related existing issues: #331, #364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants