Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

is D worth learning?

Name: Anonymous 2006-10-09 16:06

The D programming language... is it worth taking my time off my current projects to learn?

I've actually found one independenet game programmer who uses D -- source code included with this halfpipe shooter called Torus Trooper is written entirely in D.

But will this language ever really take off enough to warrant learning it?  There aren't even any books on it, and that may be a bit of a handicap in really getting mentally "into" it.

Name: Anonymous 2006-10-10 9:49

>>8
Why do we need a parameter for self?
Because it's simpler and can be used to automatically convert functions into methods and vice-versa.

Why do we need to pass the class name for super?
Yeah, super sucks.

Why can we omit parens for print but not len?
Because print is a statement and len is a function.

Why is lambda so castrated?
I don't know, I wish I could just do def params: then go on with a regular block, just like you can do function (params) {...} in JavaScript.

Why do we have both lists and tuples?
Beacuse lists are mutable and tuples are not.

Why immutable strings that sort-of act like lists of characters, but sort-of don't?
What's the actual problem with strings?

Why does x += y and x = x + y behave differently?
Because they are different operations; one is accumulation, while the other is actually two: addition and assignment.

Why is everything supposedly explicit, but class and instance variables so thinly differentiated?
Because objects are a namespace hack, and the fact they are makes the language simpler and more flexible. I never saw this as an issue, really...



Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List