Qi Xiao
2e788c846d
Run gofmt.
...
https://tip.golang.org/doc/go1.19#go-doc
2022-08-07 22:30:11 +01:00
Qi Xiao
51e4d97568
interface{} -> any now that Elvish requires Go 1.18.
2022-03-20 16:17:19 +00:00
Qi Xiao
7d22bb1c28
per/persistent: Update benchmarking results.
...
Also remove disclaimer about API instability since that is now implied by the
0.x version number of the Go module.
2022-01-05 22:44:12 +00:00
Qi Xiao
b2c6e41cb2
Upgrade the script pkg/persistent/add-slowdown.
2022-01-05 22:37:50 +00:00
Qi Xiao
59459793e3
pkg/persistent: Cons -> Conj.
...
Cons was a misnomer for the operation of adding an element at the end of a
vector. Follow Clojure's naming here and call this operation Conj.
2022-01-05 22:34:55 +00:00
Qi Xiao
4d62732ebc
Fix "indicies" -> indices.
2021-08-22 23:31:26 +01:00
Shengjing Zhu
5724ec4c47
Fix typos and add codespell to CI
2021-08-22 23:07:34 +01:00
Qi Xiao
671c76be00
Add a lint Makefile target and CI task.
...
Both run staticcheck and go vet (but not golint).
Also make some small changes necessary to make the codebase lint-free under
staticcheck.
2021-07-08 00:13:38 +01:00
Kurtis Rader
9345125bd2
staticcheck lint cleanups
...
Fix two issues found by `staticcheck -tests=false ./...`:
pkg/eval/go_fn.go:155:5: var errNoOptions is unused (U1000)
pkg/persistent/hashmap/hashmap.go:321:2: only the first constant in this group has an explicit type (SA9004)
2021-06-06 14:54:47 +01:00
Kurtis Rader
fee2870564
Lint cleanup: avoid dangling "else { return }"
...
Also, don't assume the only possible pointer sizes are four and eight bytes.
2021-05-30 00:38:26 +01:00
Qi Xiao
91b6f6dd72
Use the integrated persistent package.
2021-05-03 22:17:46 +01:00
Qi Xiao
0a5057a64d
Add 'pkg/persistent/' from commit '8ed0fbdb11911ed89129a090bcc1562f3a759481'
...
git-subtree-dir: pkg/persistent
git-subtree-mainline: 543b123661
git-subtree-split: 8ed0fbdb11
2021-05-03 22:13:15 +01:00