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

Sugar for connections where inport and outport has the same name #526

Closed emil14 closed 6 months ago

emil14 commented 8 months ago

Currently to match we need 2 connections:

15 -> mod:case[0]
mod:then[0] -> ('FizzBuzz' -> printer:data)

With this sugar and if outport then would also have case we could write instead:

15 -> mod:case[0] -> ('FizzBuzz' -> printer:data)

This is related to #514

emil14 commented 6 months ago

Implemented