-
Notifications
You must be signed in to change notification settings - Fork 602
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
04_atoms.ex has unclear expectations #226
Comments
@DaneWeber thank you for the feedback! Sorry it has taken so long to get a response. Sometimes it's really hard to build an example that provides enough hint to keep folks on the straight and narrow w/o giving everything away. If you have any ideas for how to help these examples explain themselves better, we'd love to see them! Maybe even as easy as a little more in the description? Or a comment? |
Thanks for the response! 😄 I'm on a pretty slow cycle too. So, I'm an elixir newbie, but my suggestion was the following: I would think that would point to a solution of |
Ah, I think I missed the subtlety of your suggestion. I like it! I agree that it would seem a bit easier to intuit what the lesson is trying to show you by going from atom to boolean rather than the opposite. Fwiw, I don't think the threequals is really necessary. I believe the only difference is numeric equality.
What do you think @felipesere @ukutaht ? |
Thank you for the suggestions @DaneWeber! I agree with @iamvery here. Showing the atom is a good improvement to the exercise but I would keep the double-equals. In my experience the convention is to always use double-equals as the default and frankly seeing a triple-equals in an elixir codebase would be pretty confusing to me. |
Interesting! I came directly from |
I wonder if we could do more to emphasize "looky |
Found this issue because I also had no idea what My suggestion would be to follow the same pattern from the first two koans in Numbers:
|
I'm new to Elixir and using these koans. First of all: thanks! I really appreciate them.
For the 04_atoms koans, I wasn't clear what was expected. For example,
assert true == ___
andassert false == ___
can be most easily completed by simply repeatingtrue
andfalse
.I was guessing that perhaps it should be completed with
assert true == :true
.Another thought is that these could be triple-equal, such as
assert :true === ___
?Bottom line: while this definitely succeeding in driving me to think more about atoms, I would have appreciated more of a nudge.
If someone more experienced with Elixir can explain the intent, I would be happy to submit a PR to improve this koan.
The text was updated successfully, but these errors were encountered: