Skip to content

Type hint shortener #67

Open
Open

Description

@vemv

I think it would be relatively easy to implement a formatter that achieved the following:

- (speced/defn safely-read-ns-contents [^string? buffer, ^clojure.lang.Namespace ns-obj]
+ (speced/defn safely-read-ns-contents [^string? buffer, ^Namespace ns-obj]

Activity

  1. vemv commented on Dec 13, 2019

    @vemv
    ContributorAuthor

    Also: insert :import statements if missing (people may refer to classes without importing them)

    Little caveat: speced.def uses e.g. ^int? metadata, which may translate to {:tag int?} and confuse this formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions