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

Create a section/wiki page for unfamiliar or potentially confusing notation #135

Open
danbernier opened this issue Jan 1, 2017 · 5 comments

Comments

@danbernier
Copy link

Thank you for putting this together! I've been studying functional programming on and off for years, and this has reinforced some of the concepts I've learned, clarified others, and taught me new ones. Very nice work.

As I was reading, I came across two notation idioms that confused me, that I'm pretty sure have nothing to do with FP:

  • The symbol ≍ (which is a black box on my Android, fwiw). From googling, I think it means either logical equivalence, or just equivalence. Not being a mathematician, I'm not sure which it is, and what, specifically, the differences between those are. I can guess why it's preferred over = (which means assignment), but I'm not completely sure why it's different from === (I'm also not a JavaScript expert).
  • This pattern: ;[1] I'm guessing it means: here's a plain value? and that it's written that way, because of the linter?

Anyway, these details can confuse, and like I said, they're not about FP, so I was thinking it might be nice to have a section, or a wiki page, for them - almost like the sections at the front of many programming books, where they explain how code sections are formatted, that kind of thing. I'm happy to create a wiki page, but I don't know the explanations for either ≍ or ;[1].

@FlorianWendelborn
Copy link

FlorianWendelborn commented Jan 1, 2017

@danbernier ;[1] is most likely due to not using semicolons. Browsers won't automatically detect that the line ended when you start it with [.

@danbernier
Copy link
Author

Thanks @dodekeract! That's exactly the kind of useful info I'm looking to collect.

@jethrolarson
Copy link
Collaborator

jethrolarson commented Jan 2, 2017 via email

@danbernier
Copy link
Author

danbernier commented Jan 2, 2017 via email

@danbernier
Copy link
Author

I found issue #46, which seems to speak to the equality question; linking it here for completeness' sake.

Would still love to see a section for this.

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

No branches or pull requests

3 participants