Fabulous.AST icon indicating copy to clipboard operation
Fabulous.AST copied to clipboard

Expose the APIs using `seq` instead of `list`

Open MangelMaxime opened this issue 9 months ago • 1 comments

Hello,

This issue is more of an idea / reflection.

In the project, I am working on we are using reflection to generate code using Fabulous.AST.

Most of F# reflection APIs returns array and not list.

This leads to needing to write Seq.toList, Array.toList, etc. a lot of times to match Fabulous.AST APIs which expect list.

Do you think it would make sense to make Fabulous.AST expose the APIs using seq instead so it would be compatible with list, array, seq, etc. out of the box?

MangelMaxime avatar Mar 12 '25 20:03 MangelMaxime

Yeah I think it makes sense. Im planning to make some breaking changes in the InterpolatedStringExpr so it might be a good moment to also change this.

edgarfgp avatar Mar 15 '25 19:03 edgarfgp