Can't coerce to string
Charles Goodwin <[email protected]>
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Organization | XWT Foundation |
| Message-ID | <[email protected]> |
This was Brian's take, which Adam agreed with, on coercing boxes and js objects to strings: > Actually, we intentionally took this out a while ago. The rational was > people often screw things up by using strings where they don't intend > to. (For example, in Lithium with Rhino people would use the toString > output from Box.toString() as a key in a hashtable, but the toString > output isn't guaranteed to be unique.) 1) why isn't the output guarranteed to be unique? 2) is it not possible for the output to be unique? 3) the reason people do this is because it's _very_ easy. You're taking away a powerful tool for people to use. -- - Charlie Charles Goodwin <[email protected]> Online @ http://www.charlietech.com