Type | Wish | Status | reviewed | Date | 25-Dec-2009 22:24 |
---|---|---|---|---|---|
Version | alpha 95 | Category | Native | Submitted by | PeterWood |
Platform | All | Severity | minor | Priority | normal |
Summary | More consistency in and between to-string and mold |
---|---|
Description |
With some not number datatypes to-string strips the datatype "identifier", for others it does not. Mold doesn't strip the datatype identifier. For the sake of consistency, it would be good if to-string always stripped the datatype identifier and mold didn't. |
Example code |
>> to string! #a == "a" >> mold #a == "#a" >> to string! <a> == "a" >> mold <a> == "<a>" >> to string! first ['a] == "'a" >> mold first ['a] == "'a" >> to string! first [a] == "a" >> mold first [a] == "a" >> to string! first [a: 1] == "a:" >> mold first [a: 1] == "a:" >> to string! second [b: :a] == ":a" >> mold second [b: :a] == ":a" |
Assigned to | n/a | Fixed in | - | Last Update | 12-Jan-2010 21:08 |
---|
Comments | |
---|---|
(0001883)
Ladislav 26-Dec-2009 19:31 |
It would be useful if To-string stripped datatype identifiers for word types, since then we could pick either Mold or To-string depending on our needs, while currently we do not have the choice. |
(0001885)
PeterWood 28-Dec-2009 03:36 |
Thanks, Ladislav. |
(0001886)
Ladislav 28-Dec-2009 12:55 |
The requested functionality was available in Rebol 2.7.6, therefore I edited the http://www.rebol.net/wiki/Bindology article removing the Spelling? function as unnecessary, in hope, that Carl finds the proposal useful at least for any-word! types. |
Date | User | Field | Action | Change |
---|---|---|---|---|
12-Jan-2010 21:08 | carl | Status | Modified | submitted => reviewed |
30-Dec-2009 16:45 | Ladislav | Comment : 0001883 | Modified | - |
28-Dec-2009 15:51 | PeterWood | Description | Modified | - |
28-Dec-2009 15:51 | PeterWood | Code | Modified | - |
28-Dec-2009 13:40 | Ladislav | Comment : 0001886 | Modified | - |
28-Dec-2009 12:55 | Ladislav | Comment : 0001886 | Added | - |
28-Dec-2009 03:36 | PeterWood | Comment : 0001885 | Added | - |
26-Dec-2009 19:43 | Ladislav | Comment : 0001883 | Modified | - |
26-Dec-2009 19:43 | Ladislav | Comment : 0001883 | Modified | - |
26-Dec-2009 19:31 | Ladislav | Comment : 0001883 | Added | - |
25-Dec-2009 22:24 | PeterWood | Ticket | Added | - |