Open emil14 opened 1 month ago
flow NewPixel(x int, y int, c image.RGBA) (pixel image.Pixel) { Struct<image.Pixel> --- :x -> struct:x :y -> struct:y :c -> struct:color struct -> :pixel }
flow NewPixel(x int, y int, c image.RGBA) (pixel image.Pixel) { image.Pixel{ x: :x, y: :y, color: c, } -> :pixel }
I don't like that -> is omitted, like it lacks dataflow readability
->
Another option:
flow NewPixel(x int, y int, c image.RGBA) (pixel image.Pixel) { image.Pixel{ x <- :x, y <- :y, color <- :c, } -> :pixel }
Or (weird?)
flow NewPixel(x int, y int, c image.RGBA) (pixel image.Pixel) { image.Pixel{ :x -> x :y -> y :c -> c } -> :pixel }
It's something we need to think about very carefully in context of #724 as well
Before
After
I don't like that
->
is omitted, like it lacks dataflow readabilityAnother option:
Or (weird?)