Pact 2.3.8 is out!

Stuart Popejoy
Apr 9, 2018 · 1 min read

The latest version of Kadena’s smart-contract language, Pact 2.3.8, is released! This update boasts auto-completion and full readline support for the pact command line interpreter, no more rlwrap required. Hit tab to see all completions, up-arrow and down-arrow for history, Ctrl-A for beginning of line, Ctrl-E for end, etc. All made possible in record time by the incomparable Joel Burget.

Also community member Konrad Scorciapino (“konr” on github) made heroic docs updates. Remember, in a LISP the docs follow the code, don’t forget you can get full docs on a function right from the interpreter and not scramble for the language reference! Here’s konr’s corrected docs for with-read-default:

pact> with-default-read
(TNative with-default-read (table:table:<{row}> key:string defaults:object:<{row}> bindings:binding:<{row}> -> <a>) Special form to read row from TABLE for KEY and bind columns per BINDINGS over subsequent body statements. If row not found, read columns from DEFAULTS, an object with matching key names. `$(with-default-read 'accounts id { "balance": 0, "ccy": "USD" } { "balance":= bal, "ccy":= ccy }
(format "Balance for {} is {} {}" [id bal ccy]))`)

brew upgrade kadena-io/pact/pact to get the goodness or head over to the download page.

Changelog:

2.3.8

* Pact tool improvements: auto-complete, readline support, better multiline
* Fix documentation for `format` form
* Internal changes: TableName in AST, expose evalRepl’, token parsing
* build improvements: weeder, hlint enforcement

Kadena

Kadena is powering new ideas and business models with a hybrid blockchain platform that offers scale, security and simplicity. Kadena’s blockchain technology is in use today by Fortune 500 clients in finance, healthcare, and insurance.

Stuart Popejoy

Written by

Founder at kadena.io

Kadena

Kadena

Kadena is powering new ideas and business models with a hybrid blockchain platform that offers scale, security and simplicity. Kadena’s blockchain technology is in use today by Fortune 500 clients in finance, healthcare, and insurance.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade