Skip to content

Array spreading still uses Belt #7005

Closed
@nojaf

Description

@nojaf

See playground

let x = [ "a" ]
let y = [ ...x]

generates

// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';

let Belt_Array = require("./stdlib/belt_Array.js");

let x = ["a"];

let y = Belt_Array.concatMany([x]);

exports.x = x;
exports.y = y;
/* y Not a pure module */

I would expect Belt no longer be used for this. Given concatMany exists in Core.

With some pointers, I would be interested in taking a stab at this myself.

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