Skip to content

Suggestion: Add ternary operator explanation to if/then/else reference pages #599

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

Closed
cbfunky opened this issue May 20, 2019 · 1 comment
Closed

Comments

@cbfunky
Copy link

cbfunky commented May 20, 2019

I know there has already been this closed proposal, but I thought I should mention it again because of the following:

I'm new to Arduino and haven't programmed in a very long time. I use the Arduino reference extensively. I work a lot with example code and when I don't understand something I have to look it up. The problem (and this has been mentioned as well in the above link) is that the ternary operators are impossible to look up unless you already know what it is.

In my case, I had a vague feeling it was related to if/then/else, but reading the reference pages didn't shed any light on this. I only found an explanation after lengthy research and only because I kind of knew what I was looking for.

I totally understand @per1234 's thoughts on the original issue, both pro and con, and I agree that this is not something a beginner would use themselves. But as a beginner myself I just wanted to bring it up again, as it is used in example code a lot and finding information about it is hard.

On behalf of all noobs, I would thank you for considering it :)

@per1234
Copy link
Collaborator

per1234 commented May 20, 2019

That proposal is not closed and my views on the subject have changed a bit due to me receiving new information since the time I wrote it. I don't think we need two issue reports on this topic so I'm going to close this as a duplicate of #519. I'll comment on #519 with an update on my views.

@per1234 per1234 closed this as completed May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants