[racket] tinyscheme vs. racket question

From: Nikolaus Klepp (dr.klepp at gmx.at)
Date: Mon Sep 10 12:41:02 EDT 2012

Hi all, 

In tinyscheme I can do this:

> (+ (string->symbol "1.2") 1)
2.2

In racket that does not work, because 

> (string->symbol "1.2") 
'|1.2|

which is not a number. I can use this workaround:

> (+ (read (open-input-string "1.2")) 1)
2.2

But is there a clean way to get the above line from tinyscheme working on 
racket without that workaround? 

Nik


Posted on the users mailing list.