v0.14.0
What's Changed
This release adds new syntax sugar:
Multiple senders syntax
Instead of
$x -> foo:bar
$y -> foo:bar
You can now write
[$x, $y] -> foo:bar
Same goes for normal senders with outports.
Components without net
keyword
If component has network but doesn't have nodes, you can omit net
keyword.
Before:
component Main(start) (stop) {
net { :start -> :stop }
}
After:
component Main(start) (stop) {
:start -> :stop
}
One-liners are also supported: component Main(start) (stop) { :start -> :stop }
One-line nodes section
Now you can instead of defining each component's node on separate line, define them in one line separating them with comma. Old syntax is supported (e.g. for components with big amount nodes).
Before:
component Foo(a) (b) {
nodes {
Bar
Baz
Bax
}
net {
// ...
}
}
After:
component Foo(a) (b) {
nodes { Bar, Baz, Bax }
net {
// ...
}
}
Related:
Full Changelog: v0.13.0...v0.14.0