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

[KtLime] Use lexical scoping or stableized dynamic scoping #12

Open
duangsuse opened this issue Feb 2, 2019 · 0 comments
Open

[KtLime] Use lexical scoping or stableized dynamic scoping #12

duangsuse opened this issue Feb 2, 2019 · 0 comments
Labels
bug Something isn't working designment Designment errors for GeekApk v1♭ GeekApk first version

Comments

@duangsuse
Copy link
Collaborator

replace macro-filling "expander" in KtLime

  • binding variable id shadow
(((# (a)
    (# (a) a)) 1) 2)

; expected: 2
; actual: 1
  • use lexical scoping
(-> a 199)

(-> get-a (# () a))

(println a) ; 199

(-> print-a (# (a)
  (println (get-a))))

(print-a 233) ; 233
@duangsuse duangsuse added bug Something isn't working designment Designment errors for GeekApk v1♭ GeekApk first version labels Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working designment Designment errors for GeekApk v1♭ GeekApk first version
Projects
None yet
Development

No branches or pull requests

1 participant