Skip to content

Deprecate/remove OCaml stdlib functions #5779

Closed

Description

@cknitt

As discussed with @zth: We should deprecate most functions from the OCaml stdlib and point people to Belt / Js.xxx2 / a new stdlib instead where appropriate.

So basically one would have to go through all files in jscomp/stdlib-406 and decide which functions are still needed. E.g. parts of Pervasives like string_of_int, print_endline, ... can be deprecated, as well as probably all functions in Array, List, Set etc. (although Array.get is a bit of a special case).

It may be tricky though where exactly to point the user in the deprecation messsage as long as there is no new stdlib in place yet.

Activity

  1. added this to the v11.0 milestone on Nov 6, 2022
  2. changed the title [-]Depreacte OCaml stdlib functions[/-] [+]Deprecate OCaml stdlib functions[/+] on Nov 25, 2022
  3. cknitt commented on Apr 11, 2023

    @cknitt
    MemberAuthor

    I think this is something for later on when Core is moved into the compiler. Moving to v12.

  4. modified the milestones: v11.0, v12 on Apr 11, 2023
  5. changed the title [-]Deprecate OCaml stdlib functions[/-] [+]Deprecate/remove OCaml stdlib functions[/+] on Aug 25, 2024
  6. cknitt commented on Aug 25, 2024

    @cknitt
    MemberAuthor

    Or already fully remove the OCaml stdlib + related primitives in v12, which would make revamping the stdlibs build procedure (#6826) much easier.

  7. cknitt commented on Aug 25, 2024

    @cknitt
    MemberAuthor

    Related: We will still need some sort of Pervasives and need to decide what should stay in there.

  8. moved this from Backlog to In progress in ReScript developmenton Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions