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

Enable file content to be hashmap body #9

Closed
sam701 opened this issue Oct 16, 2020 · 0 comments
Closed

Enable file content to be hashmap body #9

sam701 opened this issue Oct 16, 2020 · 0 comments
Labels
new feature New feature or request

Comments

@sam701
Copy link
Owner

sam701 commented Oct 16, 2020

Currently, the file content is either an expression or the inner of the block expression

let x = 3
in [x, 2]

It would be helpful to have valid content like

name: "sherlock"
age: 33
address: {
  street: "baker street"
  house: "221B"
}

It should result in a hash map and be able to be imported like this

let person = import "./sherlock.sy"
in
{
  street: person.address.street
}
@sam701 sam701 added the new feature New feature or request label Oct 16, 2020
@sam701 sam701 closed this as completed in e3f7d6a Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant