tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.37k stars 89 forks source link

Update/refresh examples using latest Nickel idioms #1849

Closed yannham closed 6 months ago

yannham commented 6 months ago

The initial motivation for this small PR was to fix an inconsistency between examples and the user manual: the "Warning = vs |" paragraph advises to use | as much as possible, but the record-contract example uses = inside contracts.

Doing so, I also took a tour of the existing examples to update them to use latest niceties whenever it made the code simple/more idiomatic/more readable (at least IMHO, but please challenge it if you don't think alike!)