Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

remove +hard, replace with new ;; #1166

Merged
merged 2 commits into from
May 10, 2019
Merged

remove +hard, replace with new ;; #1166

merged 2 commits into from
May 10, 2019

Conversation

pilfer-pandex
Copy link
Contributor

The previous commit changed the semantics of ;; to just call the mold with the result of the hoon, rather than having it macroexpand to something like hard. By "hard" is meant applying the mold and then checking whether the result is unchanged. This second commit removes the +hard function itself, with the effect that there are no remaining mold "idempotence" tests in the system.

#1055

@pilfer-pandex pilfer-pandex requested a review from joemfb May 9, 2019 19:50
@cgyarvin
Copy link
Contributor

cgyarvin commented May 9, 2019 via email

Copy link
Member

@joemfb joemfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there's still a call in lib/hall-legacy. Otherwise, this LGTM

@pilfer-pandex
Copy link
Contributor Author

pilfer-pandex commented May 9, 2019

You're right. My test procedure was a combo of |reset and +test, which did not catch this. What testing strategies do you use?

@@ -144,7 +144,7 @@
%- of :~
name+(ot nom+so mon+tors ~)
text+(cu to-wain:format so)
tank+(ot dat+(cu (hard (list tank)) blob) ~)
tank+(ot dat+(cu ;;((list tank) blob)) ~)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a call to hard, but still wrong.

@jtobin jtobin merged commit 4b09d4d into master May 10, 2019
@jtobin jtobin deleted the hard branch May 10, 2019 00:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants