Skip to content

Add "let"-expressions to language #4

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

Open
1 of 3 tasks
AraneusRota opened this issue Jun 7, 2021 · 0 comments
Open
1 of 3 tasks

Add "let"-expressions to language #4

AraneusRota opened this issue Jun 7, 2021 · 0 comments

Comments

@AraneusRota
Copy link
Collaborator

AraneusRota commented Jun 7, 2021

  • A "let"-ADT (case class)
  • Use macros to detect usage of standard Scala variables
  • Store all "state" implicitly in every result so that no self implemented let or control flow expressions are needed. All of Scala's functionality can be used (let, if, loops, ...) (done in FunctionalTape)

To differentiate programs we need a language that not only consists of mathematical terms. Firstly it needs variables implemented with "let"-expressions. Two different approaches are considered: A "let"-ADT or standard Scala variables with macros

Consider: Shadowing of variables when implementing "let" as ADT

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

No branches or pull requests

1 participant