Freymaurer / Siren

A domain specific language (DSL) for creating mermaid graph YAML!
https://freymaurer.github.io/Siren/
MIT License
15 stars 0 forks source link

Investigate using objects instead of tuples. #21

Open Freymaurer opened 3 months ago

Freymaurer commented 3 months ago

Should improve C# accessibility, this would solve one of the two issues why a c# access layer is required!

A suggestion by Vladimir Shchur.

@Freymaurer as for second issue, I recommended to get rid of tuples in API like here. If you use records, there (like { label: string; value: float }, this can both eliminate compatibility issue and make API more clear.

I am not sure what to use for { label: string; value: float } in fsharp? Just a record type?

Can you give me more insight on this topic @Lanayx ?

Lanayx commented 3 months ago

Yes, I meant just a simple record type