3 ms·
I am not the person you replied but in C style syntax when you type { in an IDE the { is inserted automatically so there is no risk to forget about it, also if
by simion314 8y ago
I am not the person you replied but in C style syntax when you type { in an IDE the { is inserted automatically so there is no risk to forget about it, also if you copy paste a piece of code you just run the action to reformat the file or the selected code and the braces will correctly fall onto place.
I am not saying that Python syntax is a big issue, but is one more thing to keep in mind and it potentially trip up children(probably something more visual that is impossible to make syntax errors is better but I did not find something that is engaging enough)
- mixmastamyk 8y agoHis point was about not needing a "magic" editor. Neither does python, it works with spaces or tabs as long as you are consistent, and tells you where you aren't.
- simion314 8y agoMy point is that if I define a metric for easier to use by a beginner programmer (child) then C syntax > Python syntax If you define a different metric, maybe pretty syntax then it would compare in reverse. Though I don't have experience or seen people testing this on children and "proving" that having to keep in mind spaces/tabs is harder then the braces and semicolumns (when using a decent IDE) so I may be wrong.
- stormking 8y ago> My point is that if I define a metric for easier to use by a beginner programmer (child) then C syntax > Python syntax That's pure speculation, not a fact.
- simion314 8y agoMy speculation is based on the FACT that python syntax involves the programmer to indent correctly where C like syntax is not , so the only way you could disagree is that maybe 1 the cost of keeping indentation in mind for beginners is 0 2 or the cost is greater then zero but there is some different cost in C like syntax that affects beginners Keep in mind I am talking about syntax here and not the C language