Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md with the newest version #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Potemkin is a collection of facades and workarounds for things that are more dif

##### Leiningen
```clojure
[potemkin "0.4.6"]
[potemkin "0.4.7"]
```

##### deps.edn
```clojure
potemkin/potemkin {:mvn/version "0.4.6"}
potemkin/potemkin {:mvn/version "0.4.7"}
```

### `import-vars`
Expand Down Expand Up @@ -106,11 +106,11 @@ This abstract type may be used within the body of `deftype+`, which is just like
A drop in replacement for `defprotocol` that is more REPL-friendly.

A protocol created with Clojure's `defprotocol` always creates new instance at load time.
If a protocol is reloaded, a `defrecord` in another namespace that is referencing the procotol will not automatically be updated to the new protocol instance.
If a protocol is reloaded, a `defrecord` in another namespace that is referencing the protocol will not automatically be updated to the new protocol instance.

One telltale symptom of this disconnect can be a `No implementation of method` exception when calling record methods.

Potemkin's `defprotocol+` improves the REPL experience by only creating a new instance of a protocol if the procotol body has changed.
Potemkin's `defprotocol+` improves the REPL experience by only creating a new instance of a protocol if the protocol body has changed.

### `definterface+`

Expand Down