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

Remove built in fst and snd #322

Closed
wants to merge 2 commits into from
Closed

Conversation

oxinabox
Copy link
Contributor

@oxinabox oxinabox commented Dec 8, 2020

AFAICT fst and snd can be implemented in pure dex, using pattern matching.
So it should be possible to delete all the code for handling them as a built-in operator.
Code that doesn't exist has no bugs.

Though, I think it's been possible for quite a while to do this, because tuple destructuring was implemented long ago.
So perhaps they are still here for a reason?

@google-cla google-cla bot added the cla: yes label Dec 8, 2020
src/lib/Syntax.hs Outdated Show resolved Hide resolved
@apaszke
Copy link
Collaborator

apaszke commented Dec 9, 2020

I think that this is going to conflict with #290 which contains this and other changes, so I'll close it if you don't mind. But thanks for the PR!

@apaszke apaszke closed this Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants