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

Similarity between module and let in / where. #3

Open
AnthonyJacob opened this issue Nov 24, 2016 · 1 comment
Open

Similarity between module and let in / where. #3

AnthonyJacob opened this issue Nov 24, 2016 · 1 comment

Comments

@AnthonyJacob
Copy link

AnthonyJacob commented Nov 24, 2016

I think that it is possible to think of let in / where as an anonymous module, that is immediately exposed to local scope and vice versa.

Thus one of them can be replaced with the other.

@ptol
Copy link
Owner

ptol commented Nov 24, 2016

Yes

x = 
  foo = 1
  bar = 2

(foo = 1, bar = 2) is anonymous record but with in

x = 
  foo = 1
  bar = 2
  in
  foo + bar

this record is exposed to foo + bar expression.

xgrommx added a commit to xgrommx-forks/oczor that referenced this issue Mar 28, 2017
nponeccop pushed a commit that referenced this issue Mar 28, 2017
* Refactor - Lenses for `Ann` in Oczor.Syntax.Types

* Refactor - Lenses for `Ann` in Oczor.Syntax.Types #2

* Refactor - Lenses for `Ann` in Oczor.Syntax.Types #3

* Fix

* Fix #2

* Apply patch
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

2 participants