Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An optional type system for Clojure

License

NotificationsYou must be signed in to change notification settings

clojure/core.typed

Repository files navigation

Optional typing in Clojure, as a library.

NEW REPO -- core.typed is deprecated as of Clojure 1.11

core.typed supports up to Clojure 1.10. Clojure 1.11 introduced new destructuring expansion that is only supported bytypedclojure.

Further feature development has been moved to thetypedclojure repositorywhich was forked from this repository at core.typed1.0.1.

Seehere for upgrading instructions.

Usage Overview

core.typed is separated into modules. You'll want the full type checker at developmenttime, and the runtime dependencies in production.

In Clojure CLI'sdeps.edn, this will look something like this:

{:deps {org.clojure.typed/runtime.jvm {:mvn/version"1.0.1"}}:aliases {:dev {:extra-deps {org.clojure.typed/checker.jvm {:mvn/version"1.0.1"}}}}}

You can then start a dev repl withclj -A:dev.

In Leiningen'sproject.clj, something like this:

(defprojecta-project"0.0.1-SNAPSHOT":dependencies [[org.clojure.typed/runtime.jvm"1.0.1"]]:profiles {:dev {:dependencies [[org.clojure.typed/checker.jvm"1.0.1"]]}})

Then,lein repl will automatically activate the:dev profile. Verify the typechecker is not included in uberjars withlein with-profile uberjar deps :tree.

Releases and Dependency Information

Latest stable release is 1.0.1.

See modules for specific version coordinates:

Core type system

Library Annotations

Utility libraries

Compatibility

core.typed supports Clojure 1.10.1 and JDK 1.8+.

Mailing List and IRC

Use the core.typedmailing list for core.typed discussion.

Documentation

Seewiki.

API Reference

Ambrose's blog

Leiningen Plugin

lein-typed

Vim Plugin

vim-typedclojure

Emacs Mode

typed-clojure-mode

Examples

core.async Rock-paper-scissors

Developer Information

Contributors

Thanks to the following people for contributing to core.typed:

  • Stephen Compall (S11001001)
  • Andrew Brehaut (brehaut)
  • Christopher Spencer (cspencer)
  • Reid McKenzie (arrdem)
  • Di Xu (xudifsd)
  • Nicola Mometto (Bronsa)
  • Chas Emerick (cemerick)
  • Jake Goulding (shepmaster)
  • Andy Fingerhut
  • Aravind K N (arav93)
  • Allen Rohner (arohner)
  • Minori Yamashita (ympbyc)
  • Kyle Kingsbury (aphyr)
  • Nathan Sorenson
  • Tobias Kortkamp (t6)
  • Alejandro Gomez (dialelo)
  • Piotr Jarzemski (kazuhiro)

Sponsors

Thanks to the following companies for their active sponsorship of Typed Clojure's developmentviaOpenCollective.

Adgoji

YourKit

YourKit is kindly supporting core.typed and other open source projects with its full-featured Java Profiler.YourKit, LLC is the creator of innovative and intelligent tools for profilingJava and .NET applications. Take a look at YourKit's leading software products:

License

Copyright © Ambrose Bonnaire-Sergeant, Rich Hickey & contributors.

Licensed under the EPL (see the file epl-v10.html).

tools.analyzer

Copyright © Nicola Mometto, Rich Hickey & contributors.

Licensed under the EPL (see the file epl-v10.html).

tools.analyzer.jvm

Copyright © Nicola Mometto, Rich Hickey & contributors.

Licensed under the EPL (see the file epl-v10.html).

tools.analyzer.js

Copyright © Nicola Mometto, Rich Hickey & contributors.

Licensed under the EPL (see the file epl-v10.html).

About

An optional type system for Clojure

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors19


[8]ページ先頭

©2009-2025 Movatter.jp