You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Show a string as a string literal
pub noinline fun string/show( s : string ) : string
"\"" ++ s.list.map(show-char).join ++ "\""
I think we should change this to
// Show a string as a string literal
pub noinline fun string/show( s : string ) : string
"\"" ++ s ++ "\""
// Show a string as an escaped string literal
pub noinline fun string/show-raw( s : string ) : string
"\"" ++ s.list.map(show-char).join ++ "\""
The name of the old functionality should maybe be show-raw, show-ascii, or something like that.
I don't think we should get rid of the surrounding quotes though.
Thanks, for some context i was working on some C bindings (https://github.com/ksev/koka-duckdb/) and could not for the life of me figure out why converting duckdb's strings to koka strings did not work for me, turns out they did i was just fooled by what was shown.
This code:
Prints the following:
I'm using Koka 3.1.2 on Fedora 41.
This does not seem like the intended behaviour?
The text was updated successfully, but these errors were encountered: