ClojureScript

Type hint some cljs.core predicates

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: 1.7.145
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code

Description

There are a handful of predicates in cljs.core that can be type hinted. They all delegate directly to either instance? or satisfies?.

The set comprises: var?, iterable?, cloneable?, volatile?, tagged-literal?

Activity

Hide
Mike Fikes added a comment -

2nd patch employs ^boolean not ^:boolean

Show
Mike Fikes added a comment - 2nd patch employs ^boolean not ^:boolean

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: