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

explicitly teach special characters in Code #57

Open
kuriwaki opened this issue Apr 1, 2019 · 0 comments
Open

explicitly teach special characters in Code #57

kuriwaki opened this issue Apr 1, 2019 · 0 comments

Comments

@kuriwaki
Copy link
Member

kuriwaki commented Apr 1, 2019

for beginners, some symbols may seem the same but have vastly different implications in code. It could be good to drill it in rather than try to explain it on a as-you-encounter-it basis.

  • . (for numbers) and ,(for parsing arguments)
  • ( for arguments and math and { for loops and functions, [ for vectors. Note this is different for TeX. ( is a character, { is for commands and optional argument, and [ is a character. Finally, this is different for Regex: ( is for optional or select, [ is for select from choice,
  • = and ==
  • spaces -- hard to teach

Here is a rstudio talk on the virtues of explicit, as opposed to open-ended, instruction. https://resources.rstudio.com/rstudio-conf-2019/opening-keynote-day2

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

1 participant