⚡ Sangsakala Proxy 🏠 Home
Skip to content

Consider Mapping display, print, etc. to console.log? #337

Open

Description

@abhillman

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.

Activity

  1. changed the title [-]Consider Mapping `display`, `print`, etc. to `console.log`[/-] [+]Consider Mapping `display`, `print`, etc. to `console.log`?[/+] on Dec 12, 2023
  2. abhillman commented on Dec 12, 2023

    @abhillman
    Author

    Short of some change to the language or additional code, some basic documentation that shows how to accomplish common JS operations in racketscript could be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions