Perhaps one of the most basic operations one would wish to conduct after compiling a script is to print to console.log. At present, it appears that (#js*.console.log ...) must be used instead.
More generally, the problem to be solved here could be 'how can we write scripts that evaluate in both racketscript and racket (with respect to print)?'
It's possible that some function (macro?) could be introduced instead that would invoke print or #js*.console.log depending on the platform.
Perhaps one of the most basic operations one would wish to conduct after compiling a script is to print to
console.log. At present, it appears that(#js*.console.log ...)must be used instead.More generally, the problem to be solved here could be 'how can we write scripts that evaluate in both
racketscriptandracket(with respect toprint)?'It's possible that some function (macro?) could be introduced instead that would invoke
printor#js*.console.logdepending on the platform.