News for hackers. Stuff that matters.
Re:Python's Original Sin by apphacker on Friday April 23, 2010 @03:40PM (#1289261)
Can you explain what you mean by this please?
Re:Python's Original Sin by technomancy on Friday April 23, 2010 @08:12PM (#1289898)
There's no reason why there should be two kinds of things code can be made up of. (statements vs expressions) In a well-designed language, everything that is a statement in Python would just be implemented as an expression that returns nil.
Re:Python's Original Sin by rbanffy on Friday April 23, 2010 @10:56PM (#1290181)
Interesting.

I was under the impression that def x(a):... was only a pretty way to say x = function(a)...

I have to agree print is a weird thing, but what other statements bother you so much?

Re:Python's Original Sin by kevindication on Friday April 23, 2010 @03:54PM (#1289292)
He's likely arguing against any non-Functional Language. "Purely functional" Lisp has no statements, side-effects, etc, for instance.
Re:Python's Original Sin by bad_user on Friday April 23, 2010 @04:02PM (#1289317)
No, he's probably arguing in favor of expressions (i.e. stuff that returns values). Smalltalk has expressions everywhere, with control blocks being just closures passed to methods on objects ...

  a < b
    ifTrue: [^'A is less than B']
    ifFalse: [^'A is greater or equal to B']
> "Purely functional" Lisp has no statements, side-effects, etc, for instance.

Such a Lisp also has no users.

Re:Python's Original Sin by ekiru on Friday April 23, 2010 @04:24PM (#1289369)
And no implementations.
Re:Python's Original Sin by lmkg on Friday April 23, 2010 @04:50PM (#1289434)
Incorrect: ACL2, an industry-standard automated theorem-prover, is written in a side-effect-free variant of Common Lisp. It has both an implementation and users, including users outside of academia.

http://en.wikipedia.org/wiki/ACL2

Re:Python's Original Sin by moe on Friday April 23, 2010 @05:54PM (#1289614)
I guess both (no implementations, no users) were meant in relative terms, and in that light they describe reality pretty well.

Hands up, who has heard of ACL2 before?

Re:Python's Original Sin by rbanffy on Friday April 23, 2010 @10:58PM (#1290187)
I did.

In fact, I am appalled so few people, apparently, heard of it.

Re:Python's Original Sin by jrockway on Saturday April 24, 2010 @03:55AM (#1290564)
Any programming language that can't be cut-n-pasted from fifty different websites to make my SQL-injection-rich AJAX social awesome NoSQL site just isn't worth knowing. Theorem proving -- you ain't gonna need it!

What's next, you're going to tell me you write unit tests? Hahahahah.

Re:Python's Original Sin by rbanffy on Saturday April 24, 2010 @08:27AM (#1290769)
In theory, at least, I wouldn't need them for I proof the program is correct ;-)
Re:Python's Original Sin by sigstoat on Saturday April 24, 2010 @12:43AM (#1290354)
me. i've even used similar tools.