views:

536

answers:

4
+13  Q: 

D standard library

I've decided to learn D, and I'm wondering which standard library I should use. Should I use Phobos or Tango? What are the pros and cons of each?

+5  A: 

Phobos 1* vs Tango

FeepingCreature
I've added human readable title to the link
J.F. Sebastian
@FeepingCreature, might I suggest adding that document somewhere on Wiki4D, or as a page in the "D Programming Language" Google group?
he_the_great
+10  A: 

Tango. It's more object-oriented where appropriate, it includes containers (like STL or Java Collections), it's got an active development team, it has more momentum (it may soon be incorporated into the official compiler), and it's got real documentation, including Learn to Tango with D.

It looks like Tango may soon be incorporated into Walter's releases.

Nikhil Chelliah
+3  A: 

I've had little experience with both (kinda ..)

Phobos is more flat and python-like, but quite incomplete.

Tango is more Java-like, it makes simple things complicated.

I personally prefer to go with phobos, unless you need a library that depends on Tango (such as DWT).

hasen j
One thing I hate about Tango is that it made itself incompatible with Phobos
hasen j
+3  A: 

If you need to use D2 then phobos is what you should use for now but tango for D2 is in development.

tangobos allows to use tango and phobos together at the same time. In D2 both work together anyway as they both make use of the separate druntime.

Tim Matthews