ClojureScript

deprecation warning for IPrintable

Details

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

Description

Now that CLJS-340 has landed, we need a deprecation warning for IPrintable / -pr-seq

Activity

Hide
Brian Taylor added a comment -

I'm starting work on this.

Show
Brian Taylor added a comment - I'm starting work on this.
Hide
Brian Taylor added a comment -

Introduces deprecation warnings.

Functions tagged with ^:deprecated metadata will cause the compiler to print a warning when they are invoked.

Protocols tagged with ^:deprecated will cause the compiler to print a warning when they are extended.

Either of these warnings can be suppressed by binding cljs-warn-fn-deprecated and/or cljs-warn-protocol-deprecated to false or by attaching ^:deprecation-nowarn metadata to the form/protocol in question at the use site.

Show
Brian Taylor added a comment - Introduces deprecation warnings. Functions tagged with ^:deprecated metadata will cause the compiler to print a warning when they are invoked. Protocols tagged with ^:deprecated will cause the compiler to print a warning when they are extended. Either of these warnings can be suppressed by binding cljs-warn-fn-deprecated and/or cljs-warn-protocol-deprecated to false or by attaching ^:deprecation-nowarn metadata to the form/protocol in question at the use site.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: