Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ex 05 feedback #5

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

Merged
adityaathalye merged 1 commit into master from ex-05-feedback
Jan 8, 2018
Merged

Ex 05 feedback #5

adityaathalye merged 1 commit into master from ex-05-feedback
Jan 8, 2018

Conversation

@jysandy
Copy link
Member

@jysandy jysandy commented Jan 8, 2018

No description provided.


;; - So suppose we define...

(def habitable-planets [{:pname "Earth" :moons 1}
Copy link
Member Author

@jysandy jysandy Jan 8, 2018

Choose a reason for hiding this comment

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

Calling them habitable-planets to begin with adds a lot of confusion at line 81, where you evaluate habitable-planets and it returns the planets unchanged, which just looks like all planets are habitable.

Copy link
Member

@adityaathalye adityaathalye Jan 8, 2018

Choose a reason for hiding this comment

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

Agreed.

;; At each re-definition, `am-i-mutable` effectively "becomes"
;; the new _immutable_ value.
;;
;; "Immutable" value is actually an oxymoron. Recall, we said that
Copy link
Member Author

@jysandy jysandy Jan 8, 2018

Choose a reason for hiding this comment

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

"Immutable" value is a tautology. "Mutable" value is an oxymoron. We can choose to use one or the other.

Copy link
Member

@adityaathalye adityaathalye Jan 8, 2018

Choose a reason for hiding this comment

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

Ayyo! Yes, /s/Immutable/Mutable


;; We can also alias the whole hash-map:

(let [add-message (fn [{:keys [pname moons]
Copy link
Member Author

@jysandy jysandy Jan 8, 2018

Choose a reason for hiding this comment

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

These function bodies are starting to get bigger, and putting them in let blocks makes them harder to visually parse.

Copy link
Member

@adityaathalye adityaathalye Jan 8, 2018

Choose a reason for hiding this comment

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

Right, let's pull them out. I can do it... Should I?

Copy link
Member

@adityaathalye adityaathalye Jan 8, 2018

Choose a reason for hiding this comment

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

Oh you did it... I missed that. 💯

;; At each re-definition, `am-i-mutable` effectively "becomes"
;; the new _immutable_ value.
;;
;; "Immutable" value is actually an oxymoron. Recall, we said that
Copy link
Member

@adityaathalye adityaathalye Jan 8, 2018

Choose a reason for hiding this comment

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

Ayyo! Yes, /s/Immutable/Mutable

@adityaathalye adityaathalye merged commit 15a32cb into master Jan 8, 2018
@adityaathalye adityaathalye deleted the ex-05-feedback branch January 19, 2018 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adityaathalye adityaathalye adityaathalye approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /