This is NOT a good example, my first language was R, second - python, third matlab, etc.
I only became familiar with C/C++ after several years of coding experience. This is why, I would dare to say that this preference of mine is not affected by prejudices. > On 17 Jul 2023, at 20:44, Chris Angelico <ros...@gmail.com> wrote: > > On Tue, 18 Jul 2023 at 03:13, Dom Grigonis <dom.grigo...@gmail.com> wrote: >> Maybe for someone who majored in languages python’s if-else is more easily >> understood. To me, personally, 2nd one is unbearable, while 1st one is >> fairly pleasant and satisfying. >> > > This is a REALLY good example of how hard it is to be objective about > syntax. Being familiar with something really truly does make it > immensely better - for you. You're comfortable with the C syntax. > That's great! So am I. But that isn't a good indication of how it > would be accepted by someone who isn't familiar with either syntax. > > The ?: syntax has the advantage that the evaluation order is > left-to-right, which is the most common (though far from universal) > evaluation order. That is a definite advantage, to be sure, but > perhaps not as big as you might think. The if/else syntax is more > consistent with other Python syntax by using words, though. > > Ultimately, *all* syntax has to be learned. > > ChrisA > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/NGJ5GH6JXOZZLSTJT323F4TUEH5YXN3V/ > Code of Conduct: http://python.org/psf/codeofconduct/ _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/FEQF6QW4RPGTWUZWVHKE34ANJX5HOO73/ Code of Conduct: http://python.org/psf/codeofconduct/