hashes: support object default hash (#17175)

This commit is contained in:
Timothee Cour 2021-02-25 23:45:37 -08:00 • committed by GitHub
commit 63f1c38f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 18 deletions

View file

@ -173,14 +173,16 @@ provided by the operating system.
dumping (on select signals) and notifying the parent process about the cause
of termination.
- Added `strip` and `setSlice` to `std/strbasics`.
- `hashes.hash` now supports `object`, but can be overloaded.
- Added `strip` and `setSlice` to `std/strbasics`.
- Added to `wrapnils` an option-like API via `??.`, `isSome`, `get`.
- `std/options` changed `$some(3)` to `"some(3)"` instead of `"Some(3)"`
and `$none(int)` to `"none(int)"` instead of `"None[int]"`.
## Language changes
- `nimscript` now handles `except Exception as e`.