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

Create objects for built-in structures List and String and allow structure.name references #27

Closed
julianhyde opened this issue Apr 1, 2020 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

In Standard ML, there is a special kind of identifier, called a longid, which may contain dots. For example List.rev is a longid.

Allowing longids would be hard for Morel, because the syntax would conflict with our record.field notation. Instead, we create top-level record values for structures List and String. Thus List.rev is a reference to the rev field of the List.

Later we will remove the underscore-named objects, such as List_rev, from the environment.

julianhyde referenced this issue in julianhyde/share May 3, 2020
…ow that [MOREL-27] has been fixed

See julianhyde/morel#27;
`List_rev` is now `List.rev`, etc.
@julianhyde
Copy link
Collaborator Author

Fixed in 20d08bd (version 0.3).

Removed underscore-named objects, such as List_rev, from the environment.

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