ClojureScript

better implementation of char function

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

There are a number of compatibility functions that are currently defined as identity functions. Among these, char

Suggested better implementation for char:

(defn char [code]
(.fromCharCode js/String code))

rather than current

(defn char [x] x)

(not sure of compatibility with node)

Activity

Hide
David Nolen added a comment -

Good point, thanks for the feedback.

Show
David Nolen added a comment - Good point, thanks for the feedback.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: