In light of recent talk about immutable arrays in FSharp.Core and the compiler, I wanted to get a sense of whether we would benefit from them in Fantomas.
And I also wanted to challenge the proposal for having them as first-class citizens in the language.
As in, do we really need a special syntax for them, while a computation expression might also just fit the bill?
My initial thoughts on this are that we don't need it here in Fantomas. The benchmark improvement is rather limited. Which might just indicate that this was the wrong project to test out.
From a code perspective, I'm actually pretty ok with the computation expression. It is not perfect but decent enough.
In light of recent talk about immutable arrays in FSharp.Core and the compiler, I wanted to get a sense of whether we would benefit from them in Fantomas.
And I also wanted to challenge the proposal for having them as first-class citizens in the language. As in, do we really need a special syntax for them, while a computation expression might also just fit the bill?
My initial thoughts on this are that we don't need it here in Fantomas. The benchmark improvement is rather limited. Which might just indicate that this was the wrong project to test out. From a code perspective, I'm actually pretty ok with the computation expression. It is not perfect but decent enough.
Before:
After: