Skip to content

Standard library status #567

Open
Open
@davesnx

Description

@davesnx

The current Js and Belt are compatible with the ones shipped with rescript and those contain a few issues from the past 1 2 and a few issues from the present 1 2 (Those aren't necessary issues directly, but to showcase that most people spend time re-working the stdlib).

Without getting myself into a lot of troubles, we could work-out a bit the status of those modules considering:

  • Records are represented as JavaScript Objects.
  • Exceptions won't have the shape and we might be able to solve compatibility with JavaScript errors.
  • Pipe-first plays really well with labelled arguments while pipe-last plays very well without labelled arguments (and we have some examples of that: https://github.com/darklang/tablecloth-rescript)
  • We might want to cross-compile (or virtualise) them.
  • First versions of Melange will remain compatible but eventually we can forge it and evolve them freely.

Opening this issue to gather information/opinions on what's a good idea and what's a bad idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions