nevalang / neva

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

[Syntax] Use `---` instead of `nodes{}; net{}` nesting blocks #697

Closed emil14 closed 1 month ago

emil14 commented 2 months ago
flow Main(start) (stop) {
    Println
    add ReducePort<int> { Add<int> }
    ---
    :start -> (
        1 -> add[0]
        2 -> add[1]
    )
    add -> println -> :stop
}
emil14 commented 2 months ago

Other ideas were to

  1. use def, func or comp (or get back to component) keywords instead of (IMO a little bit confusing flow)
  2. Use more Go-like syntax for imports import (...)
  3. (Questionable) use () for DI instead of {}
emil14 commented 1 month ago

implemented