ClojureScript

A way to create js objects and arrays from cljs maps and vectors, without copying if possible.

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

There's currently no convenient way to create a js object from a map. Arrays can be created using the `array` function, but this always creates a copy. In cases where you know the object or array will not be modified, it would be a shame to still pay for a copy of the object. This is especially true when the cljs map or vector is a literal such that nothing else can have a reference to it anyway.

Activity

People

  • Assignee:
    Unassigned
    Reporter:
    Chouser
Vote (4)
Watch (7)

Dates

  • Created:
    Updated: