REBOL3 tracker
  0.9.12 beta
Ticket #0001404 User: anonymous

Project:



Short URL: http://issue.cc/r3/1404
rss
TypeWish Statusreviewed Date25-Dec-2009 22:24
Versionalpha 95 CategoryNative Submitted byPeterWood
PlatformAll Severityminor Prioritynormal

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 ton/a Fixed in- Last Update12-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 -