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.)
> 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 Column 1 for debug code AND the current indentation for normal code control. It also makes sense to indent code to make it easy to spot function-pairs such as OpenGL's glBegin()/glEnd() or any other pre- RAII pattern [wikipedia.org] such as open()/close(), etc.
DebugPrint( x )
Foo()
glBegin()
glVertex()
glVertex()
glEnd()
Python will complain about this.
Why?
Because Python was invented by an idiot who didn't understand that whitespace does NOT change semantics. He was completely fucking clueless about _actual_ problems and programming patterns.
The other reason Python is dumb is that there is no native pre-processing like in C. How do you do this in Python?
#if DEBUG
printf( "Debug only" ) #endif
The WHOLE point of using the pre-processor is so that the the code WON'T be compiled in the first place in a RELEASE build.
> If it was that bad, the language would have flopped,
There are many shit languages that are popular (PHP, Javascript, C++, etc.) Dumb programmers use dumb languages.
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: (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.)
Re:Let's invent "Cython" (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 Column 1 for debug code AND the current indentation for normal code control. It also makes sense to indent code to make it easy to spot function-pairs such as OpenGL's glBegin()/glEnd() or any other pre- RAII pattern [wikipedia.org] such as open()/close(), etc.
DebugPrint( x )
Foo()
glBegin()
glVertex()
glVertex()
glEnd()
Python will complain about this.
Why?
Because Python was invented by an idiot who didn't understand that whitespace does NOT change semantics. He was completely fucking clueless about _actual_ problems and programming patterns.
The other reason Python is dumb is that there is no native pre-processing like in C. How do you do this in Python?
The WHOLE point of using the pre-processor is so that the the code WON'T be compiled in the first place in a RELEASE build.
> If it was that bad, the language would have flopped,
There are many shit languages that are popular (PHP, Javascript, C++, etc.) Dumb programmers use dumb languages.
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)