core.typed

Getting deprecated warning with fn>

Details

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

Description

Via instructions from Twitter, I'm creating this ticket. When running lein typed check against a function using fn>, I'm getting a deprecated warning message. You can see the code and message here:

https://gist.github.com/echosa/9508942

Activity

Hide
Ambrose Bonnaire-Sergeant added a comment -

That syntax is deprecated, wherever you copied that style of nested vectors in fn> should be updated. Do you remember which docs suggested that syntax?

Show
Ambrose Bonnaire-Sergeant added a comment - That syntax is deprecated, wherever you copied that style of nested vectors in fn> should be updated. Do you remember which docs suggested that syntax?
Ambrose Bonnaire-Sergeant made changes -
Field Original Value New Value
Priority Major [ 3 ] Trivial [ 5 ]
Ambrose Bonnaire-Sergeant made changes -
Issue Type Defect [ 1 ] Task [ 3 ]
Hide
Brian Zwahr added a comment -

I do not remember. I've been looking through to try and find it again, but I can seem to. There's a chance this was homegrown code that I wrote incorrectly due to my (continuing) lack of understanding of typed Clojure. Was this deprecated even a couple months ago when I was trying it?

So, what would be the proper way to do this?

I'll continue looking for any references to this type of code and will report them if I find them.

Show
Brian Zwahr added a comment - I do not remember. I've been looking through to try and find it again, but I can seem to. There's a chance this was homegrown code that I wrote incorrectly due to my (continuing) lack of understanding of typed Clojure. Was this deprecated even a couple months ago when I was trying it? So, what would be the proper way to do this? I'll continue looking for any references to this type of code and will report them if I find them.
Hide
Ambrose Bonnaire-Sergeant added a comment -

You don't need vectors around each parameter annotation.

Show
Ambrose Bonnaire-Sergeant added a comment - You don't need vectors around each parameter annotation.
Ambrose Bonnaire-Sergeant made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Ambrose Bonnaire-Sergeant made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: