[RFC FS-1038 Discussion] Evaluate generalizable values once #222
Replies: 4 comments
-
@dsyme Do you know where in the compiler I can find the code for generating the backing representation for |
Beta Was this translation helpful? Give feedback.
-
@jack-pappas It's a non-trivial bit of work. I suppose a good place to start looking is https://github.com/Microsoft/visualfsharp/blob/44fa027b308681a1b78a089e44fa1ab35ff77b41/src/fsharp/IlxGen.fs#L851. |
Beta Was this translation helpful? Give feedback.
-
See my comment here: fsharp/fslang-suggestions#602 (comment) (which should really have been added to this RFC discussion, sorry) |
Beta Was this translation helpful? Give feedback.
-
I'm going to archive this RFC due to lack of action. The evaluate-once would be a breaking change, and it's quite possible to implement a static-type-lookup-table today manually, which is more transparent even if more verbose. |
Beta Was this translation helpful? Give feedback.
-
Discussion thread for RFC FS-1038 "Evaluate generalizable values once", based on the suggestion from fsharp/fslang-suggestions#602.
Beta Was this translation helpful? Give feedback.
All reactions