Semantics of toString

div0 div0 at users.sourceforge.net
Thu Nov 5 15:44:48 PST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dsimcha wrote:
> 
> Why?  You've said this several times w/o giving your reason.  IMHO toString() is a
> great way to get a default string representation of something.

And that's *exactly* what is wrong.

There is *never* a good default for anything.
Just look at all the discussion of nullable.
(shit people even complain about float.init == NaN)

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFK82NwT9LetA9XoXwRAkh+AJ4552uLI2Fz938zj4SsmY0qIHga3QCfZ5pa
Y5NmGJYF7tz8qk9K6GYB5J0=
=jmrB
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list