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

Use atoms as the internal representation of keys in record expressions #65

Open
emilsoman opened this issue Dec 26, 2020 · 0 comments
Open

Comments

@emilsoman
Copy link
Member

emilsoman commented Dec 26, 2020

Currently they are identifiers.

# Record in Fika:
{name: x}

# Is internally represented as
{:record, {1, 0, 9}, nil, [{{:identifier, {1, 0, 5}, :name}, {:identifier, {1, 0, 8}, :x}}]}

# Should be
{:record, {1, 0, 9}, nil, [{:name, {:identifier, {1, 0, 8}, :x}}]}
@emilsoman emilsoman changed the title Use atoms as the internal representation of keys in record types Use atoms as the internal representation of keys in record expressions Dec 26, 2020
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