nevalang / neva

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

Syntax sugar for most common routing/selecting logic #724

Open emil14 opened 3 weeks ago

emil14 commented 3 weeks ago

We have some ideas for how to make nevalang programs more readable with #719 #721 and #722 but that's not everything that programming language usually helps with through interface of so called "operators". These are left:

Routers:

Selectors:

emil14 commented 3 weeks ago
  1. We don't talk here about for look (we have ForEach HoC but #711 and it's not that powerful on context of scope capturing (we don't have closures))
  2. Existing syntax (including deferred and chained connections as well as fan-in and fan-out) makes dataflow clear. Don't we damage dataflow readability by adding control-flow-ish (visually of course) statements? Is it still clear that instructions are not executed "from top to bottom" or the dataflow itself (where data comes from, how are connections formed)?