nevalang / neva

🌊 Dataflow programming language with static types and implicit parallelism. Compiles to native code and Go
https://nevalang.org
MIT License
91 stars 7 forks source link

Even more sugar for static inports (constant senders) #688

Open emil14 opened 3 months ago

emil14 commented 3 months ago

This idea is kinda in same spirit as #591

Before

Explicitly send 42 to foo:b

flow XXX(data) (sig) {
  nodes { Foo }

  42 -> foo:a
  :data -> foo:b
  foo:sig -> :sig
}

After

"Set" a to 42 and omit it in network completely

flow XXX(data) (sig) {
  nodes { Foo(a=42) }
  :data -> foo:b
  foo:sig -> :sig
}

Questions