alexander-yakushev / defprecated Goto Github PK
View Code? Open in Web Editor NEWDeprecation in Clojure made easy
Deprecation in Clojure made easy
In a general purpose library, you do not warning printed by default. Warnings should only print when requested, like warn-on-reflection.
To maintain backward compatibility, perhaps something will need to be put in a project file to elicit the new behavior.
When I define a "defprecated" function IntelliJ doesn't like it very much and says the name of the function cannot be resolved:
(ns some.namespace
(:require [defprecated.core :as depr]))
(depr/defn foo [x]
x)
Is this a flaw in the implementation of defprecated or a bug in IntelliJ or Cursive?
Clojure 1.9
IntelliJ IDEA 2018.2.4 (Ultimate Edition) Build #IU-182.4505.22, built on September 18, 2018
JRE: 1.8.0_152-release-1248-b8 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
Cursive 1.7.0-2018.2
This would be handy to be able to use in ClojureScript too. The macros might be a bit tricky though?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.