Thanks! The Meta-data message may address to alternative function.
Such as: {:deprecated "0.1.319.0-6b1aca-alpha - Please use x function
instead"}
On Wednesday, August 10, 2016 at 12:01:10 AM UTC+3, Alex Miller wrote:
>
> I've added the :deprecated metadata to core.async in
> https://github.com/clojure/core.async/commit/103359a11598b556ac21053977e7deda43cea535
>
> On Tuesday, August 9, 2016 at 3:55:04 PM UTC-5, Ertuğrul Çetin wrote:
>>
>> That will be very useful. Can't wait :)
>>
>> On Tuesday, August 9, 2016 at 11:49:36 PM UTC+3, Alex Miller wrote:
>>>
>>> There are really two aspects to this - one is actually including the
>>> metadata in core.async, which can definitely be done.
>>>
>>> The second is adding functionality to Clojure core to give you more
>>> feedback about deprecated functions and that's something I've been trying
>>> to push through to completion for Clojure 1.9. See:
>>> http://dev.clojure.org/jira/browse/CLJ-706
>>>
>>> On Tuesday, August 9, 2016 at 3:05:24 PM UTC-5, Ertuğrul Çetin wrote:
>>>>
>>>> I found the *map>* function from *core.async* and it was
>>>> deprecated(doc says), but there is no meta-data.
>>>>
>>>> If we have meta-data for *deprecated* functions our tools(IDEs) would
>>>> work better, like scratch out the function(Most IDEs do that).
>>>>
>>>> Ex:
>>>>
>>>> This
>>>>
>>>> (defn map>
>>>> "....."
>>>>
>>>> {:added "1.0"
>>>>
>>>> :deprecated true}
>>>>
>>>> [f ch]
>>>> //...)
>>>>
>>>>
>>>> instead of this
>>>>
>>>>
>>>> (defn map>
>>>> "Deprecated - this function will be removed. Use transducer instead"
>>>> [f ch]
>>>> //...)
>>>>
>>>>
>>>>
>>>>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.