Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
31–40 of 78 posts
Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#32Earlier quoted context omitted.
"pwk" is both code and "executable" -- you can open it with any text editor. I didn't want to name it "pwk.py" to save on typing on the command line. --m
Wow, I feel _really_ dumb now - I just saw the filename without ".py" and assumed it was an executable Sorry, I take it back!
Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#33> Python With Kurly braces I wasn't aware of this. I guess it might silence a few critics. However I'd be much more interested to try "Javascript with semantic white space"
We tried that for a while, yeah? https://coffeescript.org/
Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#34Can someone help me understand the rationale behind semantic whitespace as a replacement for explicit delimiters? Is it purely aesthetic?
Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#35Can someone help me understand the rationale behind semantic whitespace as a replacement for explicit delimiters? Is it purely aesthetic?
It forces consistent formatting within a file. But I think it was more relevant years ago. These days I see a lot of people using code formatters.
Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#36Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#37Not even a nod to __future__.braces?
Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#38Re: Show HN: Making Python one-liner-fit with the new pwk (Python With Kurly braces)
#39...
I just attempted to type out an example and found a reason not to do this... it's the same reason c needs parentheses around the conditional. On the balance, I prefer parentheses over the vestigial colon.