Would it be possible to make a Python-like language using C-style conventions? Let's call it "Cython" for reference. If most the libraries can be auto-converted, then much of the wheel doesn't have to be reinvented.
Not everyone will like it, but at least those who don't like Python's white-space dependence will enjoy it. It would be a competitor to JavaScript, more or less.
An actual attempt at a constructive suggestion? On Slashdot yet?
But mostly the story makes me feel quite old. I can't accurately count the number of new languages I've studied over the last 30 years, but I've only dabbled. If I had recognized Python as "the future" even 20 years ago, then I could have been "with it" by now. But I had to be perverse about the PERL regexps.
(Actually, it's probably already been about 10 years since I did my most moderately serious dabble with Python... (No, only 5 years ago.) Anyone want to play a version of Asteroids?)
Oh yeah, on the actual topic. I don't get why people are so bent out of space by the spaces. If it was that bad, the language would have flopped, so the reasons in favor must be sufficient.
(But now I am reminded of Whitespace, which one of my students defended as his favorite programming language in a technical writing course. (One of the class clowns (of course).) https://en.wikipedia.org/wiki/... [wikipedia.org] Maybe the real reason for the Python spacing thing is to prevent steganographic embedding of Whitespace programs in Python?)
I don't get why people are so bent out of space by the spaces. If it was that bad, the language would have flopped, so the reasons in favor must be sufficient.
Different people are bothered by different things. Our brains and eyes work differently from each other. I've been in long and winding debates with Lisp fans, and their heads are just different from mine. Arguing won't change that. You can't order a brain to work different.
Just accept the fact that some are bothered by Python's indentation technique.
Actually, Lisp was one of my favorite languages. I recently wrote a little piece on Lisp memories from the '80s. https://shanen.medium.com/the-... [medium.com] Later on when I was programming in C, my code came out looking like Lisp with missing parentheses. I still remember one piece that involved two nested routines, where one was recursing from the outside and the other was recursing from the inside. That was more than 20 years ago... All I can remember now is that the data struc
> I don't get why people are so bent out of space by the spaces
Not sure if stupid or trolling but assuming you are asking a genuine question the problem is NOT space, it is Python's retarded handling of whitespace.
Image if Mathematicians said these two expressions were NOT equivalent?
a = 1+2
a = 1 + 2
You would think this is absolutely insane and you would be correct.
Now apply the same retarded logic to Python. It is common to use multiple columns for code such as using Colu
No, I am not trolling you, but if a particular language says 2 + 2 <> 2+2, then that's basically fine with me. I wonder what Bertrand Russell would have said, but my basic position on language (including computer languages) is Godelian, not purely mathematical. I'm even willing to stipulate that JavaScript is a "shit language", and even that I'm one of those "Dumb programmers", but do you understand that the existence of one skilled programmer who works effectively in Python seems to disprove your the
This is the one thing about Python's white space that really trips me up. I'm accustomed to inserting debug code at col1 in c-style languages, and I often do it in Python without thinking and then have to go back and indent it properly. And that bothers me, because then my debug code blends in with the original source, and I run the risk of leaving debug code in when I clean up. So I need to place a starting and ending comment around debug code and indent it properly. It's a lot more time commitment when al
The first thing they can fix is (Score:1, Troll)
... The stupid reliance on tabs to mark blocks.
Let's invent "Cython" (Score:2)
Would it be possible to make a Python-like language using C-style conventions? Let's call it "Cython" for reference. If most the libraries can be auto-converted, then much of the wheel doesn't have to be reinvented.
Not everyone will like it, but at least those who don't like Python's white-space dependence will enjoy it. It would be a competitor to JavaScript, more or less.
Re:Let's invent "Cython" (Score:1)
An actual attempt at a constructive suggestion? On Slashdot yet?
But mostly the story makes me feel quite old. I can't accurately count the number of new languages I've studied over the last 30 years, but I've only dabbled. If I had recognized Python as "the future" even 20 years ago, then I could have been "with it" by now. But I had to be perverse about the PERL regexps.
(Actually, it's probably already been about 10 years since I did my most moderately serious dabble with Python... (No, only 5 years ago.) Anyone want to play a version of Asteroids?)
Oh yeah, on the actual topic. I don't get why people are so bent out of space by the spaces. If it was that bad, the language would have flopped, so the reasons in favor must be sufficient.
(But now I am reminded of Whitespace, which one of my students defended as his favorite programming language in a technical writing course. (One of the class clowns (of course).) https://en.wikipedia.org/wiki/... [wikipedia.org] Maybe the real reason for the Python spacing thing is to prevent steganographic embedding of Whitespace programs in Python?)
Re: (Score:1)
Different people are bothered by different things. Our brains and eyes work differently from each other. I've been in long and winding debates with Lisp fans, and their heads are just different from mine. Arguing won't change that. You can't order a brain to work different.
Just accept the fact that some are bothered by Python's indentation technique.
Re: (Score:2)
Funny example. Or a small world thing?
Actually, Lisp was one of my favorite languages. I recently wrote a little piece on Lisp memories from the '80s. https://shanen.medium.com/the-... [medium.com] Later on when I was programming in C, my code came out looking like Lisp with missing parentheses. I still remember one piece that involved two nested routines, where one was recursing from the outside and the other was recursing from the inside. That was more than 20 years ago... All I can remember now is that the data struc
Re: (Score:3)
> I don't get why people are so bent out of space by the spaces
Not sure if stupid or trolling but assuming you are asking a genuine question the problem is NOT space, it is Python's retarded handling of whitespace.
Image if Mathematicians said these two expressions were NOT equivalent?
a = 1+2
a = 1 + 2
You would think this is absolutely insane and you would be correct.
Now apply the same retarded logic to Python. It is common to use multiple columns for code such as using Colu
Re: (Score:1)
No, I am not trolling you, but if a particular language says 2 + 2 <> 2+2, then that's basically fine with me. I wonder what Bertrand Russell would have said, but my basic position on language (including computer languages) is Godelian, not purely mathematical. I'm even willing to stipulate that JavaScript is a "shit language", and even that I'm one of those "Dumb programmers", but do you understand that the existence of one skilled programmer who works effectively in Python seems to disprove your the
Re: (Score:2)
> that the existence of one skilled programmer who works effectively in Python seems to disprove your thesis?
No. Nothing you said refutes my statements. I didn't say: "Only dumb programmers use dumb languages."
You have fallen for the fallacy of duality. One truth does not negate another truth.
1. Dumb Programmers use Dumb Languages. This is true.
2. Smart Programmers use Dumb Languages. This is also true.
Not every programmer who uses Python is dumb. No doubt there are some smart ones. This is true of any
Re: (Score:2)