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

guile: fix equality of hash-maps and lists/vectors #124

Merged
merged 1 commit into from
Nov 30, 2015

Conversation

dubek
Copy link
Collaborator

@dubek dubek commented Nov 30, 2015

(As part of #116 and #123)

Probably could use some better scheme styling. For example, maybe _equal-lists? and _equal-hash-tables? should be defined inside _equal? ? I'm not sure what's the best style here. I'll be glad to fix with some directions.

@kanaka
Copy link
Owner

kanaka commented Nov 30, 2015

Hmm, that is a bit weird looking. I'm not a guile expert at all (I do Clojure for my day job), but I think syntax-wise it's a clash between the leading underscore (I used for indicating a private function) and dashes which are a common way to separate words in variable and function names. Perhaps defining them as locals within the larger function would allow things to be cleaned up a bit (especially since they aren't likely to be use separately). Want to try that?

@dubek dubek force-pushed the fix-guile-hash-list-equality branch from aeaad35 to d5995c7 Compare November 30, 2015 20:35
@dubek
Copy link
Collaborator Author

dubek commented Nov 30, 2015

You're right. Fixed. Also using for-all when comparing lists instead of my home-grown recursive impl.

kanaka added a commit that referenced this pull request Nov 30, 2015
guile: fix equality of hash-maps and lists/vectors
@kanaka kanaka merged commit cb021d5 into kanaka:master Nov 30, 2015
@kanaka
Copy link
Owner

kanaka commented Nov 30, 2015

Yep, looks a lot better. Merged.

@dubek dubek deleted the fix-guile-hash-list-equality branch November 30, 2015 21:23
micfan pushed a commit to micfan/make-a-lisp that referenced this pull request Nov 8, 2018
guile: fix equality of hash-maps and lists/vectors
luelista pushed a commit to luelista/mal that referenced this pull request Mar 10, 2024
guile: fix equality of hash-maps and lists/vectors
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

Successfully merging this pull request may close these issues.

2 participants