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

Compiler: basic transforms #19

Open
getify opened this issue Feb 20, 2019 · 0 comments
Open

Compiler: basic transforms #19

getify opened this issue Feb 20, 2019 · 0 comments

Comments

@getify
Copy link
Owner

getify commented Feb 20, 2019

  • Compiler insert parameter type assertions (and remove the annotations)

    function foo(x = int, y = bool`true`) { .. }

    function foo(x,y = true) { x = int`${x}`; y = bool`${y}`; .. }
  • Validate runtime type assertions (only literals) during checker

    • bool`1`; should error
    • Compiler remove any of these runtime assertions that are checker validated
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