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

Stdlib naming for stream convertors #583

Open emil14 opened 5 months ago

emil14 commented 5 months ago

We basically will have components that turn something that is not stream to a stream and vice versa. How should we name them?

Builtin Explicit (Option 1)

ListToStream - list -> stream
StreamToList - stream -> list

DictToStream - dict -> stream
StreamToDict - stream -> dict

PortToStream - port -> stream
PortToList - port -> list

Imported (Less) Explicit (Option 1)8

lists.Stream
streams.List

dicts.Stream
streams.Dict

ports.Stream
ports.List

Builtin Implicit

List - stream to list
Dict - stream to dict
Stream - port to stream

???
- port to list
- list to stream
- dict to stream