Skip to main content
15 events
when toggle format what by license comment
Apr 11, 2018 at 15:03 comment added Michael Sandman Here is an encoding that let's you not use colons. Heed the warnings on this repo :) github.com/paradoxxxzero/nocolon
Sep 5, 2017 at 19:13 history tweeted twitter.com/StackSoftEng/status/905147012613632002
Sep 5, 2017 at 13:42 history protected gnat
Jan 27, 2017 at 13:51 vote accept Tomáš Zato
Jan 27, 2017 at 13:31 answer added Lie Ryan timeline score: 19
Jan 27, 2017 at 13:26 answer added RemcoGerlich timeline score: 13
Jan 27, 2017 at 12:26 comment added Tomáš Zato Exactly, that's why I asked the question - there are two characters, both required to end if and other block statements.
Jan 27, 2017 at 12:23 comment added bhan sur Speculating. It is as if the line breaks are harder to detect by interpreters/parsers in practice or are there for readability. In LUA you can write if .. then .. end in a single line. So here in python then is substituted by two things a : and a required newline. One of these seems redundant.
Jan 27, 2017 at 12:05 comment added bhan sur Got it! It's a question around python's syntax design decisions. Sorry, misunderstood it. Thank you for explaining.
Jan 27, 2017 at 12:03 comment added Tomáš Zato I don't know how to phrase it any better. My question basically is, if you could change all python syntax so that it no longer needs colon after if, else, while and so on. If you did that, would python still be language that can be used without ambiguity?
Jan 27, 2017 at 11:58 answer added Phoshi timeline score: 12
Jan 27, 2017 at 11:57 comment added bhan sur Probably, Can you rephrase parts of the question, so that I can benefit from your insight into this matter, maybe an example? You'd be the best judge, I think I'm clueless about your intention of asking. Do you mean it at the level of interpreter/compiler's parser? Thanks a bunch.
Jan 27, 2017 at 11:52 answer added Jörg W Mittag timeline score: 5
Jan 27, 2017 at 11:51 comment added Tomáš Zato I think you do not understand the question, which is whether the colons are necessary for the syntax to work. Also, no matter what your answer is, it should also contain an explanation.
Jan 27, 2017 at 11:30 history asked Tomáš Zato CC BY-SA 3.0