'Unwanted quote mark when dealing with the simply-scheme package

Following the answer in this question I installed the simply-scheme package and ran the follwing code:

#lang simply-scheme
(se (butlast (bf "this"))
    "world")

But what I got is '(hi "world") rather than (hi "world"). Why is there an quote mark and how to fix it?



Solution 1:[1]

I think this is just question of settings. In DrRacket, choose Language settings, Choose Language, Show Details, set Output Style to print or write, run your code again and compare outputs.

For #lang simply-scheme it seems to work like this:

print:

> (se (butlast (bf "this"))
    "world")

'(hi "world")

write:

> (se (butlast (bf "this"))
    "world")

(hi "world")

See also Output Printing Styles.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1