core.typed

delay is not annotated / no "Delay" equiv to Future / Promise

Details

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

Description

Ambrose suggested: (ann ^:no-check clojure.core/delay (All [x] [x -> (clojure.lang.Delay x)]))

Does there also need to be an alias along the lines of Future and Promise (in core.typed) for Delay?

Activity

Hide
Ambrose Bonnaire-Sergeant added a comment -

I forgot `delay` is a macro, so I added a Delay alias which should be sufficient.

https://github.com/clojure/core.typed/commit/143ab9574ec90e83e8195fa1031ba295b85d0748

Show
Ambrose Bonnaire-Sergeant added a comment - I forgot `delay` is a macro, so I added a Delay alias which should be sufficient. https://github.com/clojure/core.typed/commit/143ab9574ec90e83e8195fa1031ba295b85d0748
Hide
Sean Corfield added a comment -

Thank you!

Show
Sean Corfield added a comment - Thank you!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: