Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
particular (but not limited to) merging, types and contracts with the
implementation of RFC005
on) have been improved and made consistent
Breaking changes
and the stdlib got a lot of new additions. Please refer to the documentation
of the stdlib.
cluster abstraction instead of the character abstraction (
string.length
,string.is_match
, etc.)switch
keyword has been replaced bymatch
, and can now be used as astandalone function (doesn't need to be applied right away)
Num
andStr
builtin types have been renamed toNumber
andString
by @yannham in Long names forStr
,Num
, related functions and modules tweag/nickel#1164num
andstr
stdlib modules have been renamed tonumber
andstring
builtin.typeof
function now returns'Number
,'String
,'Function
instead of respectively
'Num
,'Str
, and'Fun
builtin.is_num
,builtin.is_str
andbuiltin.to_str
functions have beenrenamed to
is_number
,is_string
andto_string
string.to_num
andstring.from_num
functions have been renamed toto_number
andfrom_number
array
,string
,record
, etc. have been putunder a
std
namespace. They must now be accessed asstd.array
,std.string
and so on.and merging. See the RFC
content
for more details. Most notably, metadata annotation (default values,
optional
, documentation, etc.) can only appear next to a record field.Contract and type annotations can still appear anywhere. Documentation can
still appear on let-bindings.
record.fields
andrecord.values
by @matthew-healy in Use static dictionary types forrecord.fields
andrecord.values
tweag/nickel#1024string.Stringingable
->string.Stringable
by @vkleen in Stringingable -> Stringable tweag/nickel#1180array.elem
by @yannham in Fix the type ofarray.elem
and the mantis benchmark tweag/nickel#1223import
is now a statement,import "foo.ncl" arg1 arg2
requires parenthesis now:(import "foo.ncl") arg1 arg2
, see Convertimport
to statement instead of pseudo-fun tweag/nickel#1293Language features
Stdlib
std.trace
function) by @vkleen in Add a %trace% primop tweag/nickel#1055std.contract.Equal
contract to the stdlib by @yannham in Add Equal contract to the stdlib tweag/nickel#1203Tooling