Conditional compilation in F #: something like #elif
I am trying to find a directive like #elif in C #. He exists? I cannot find it anywhere. Sometimes in one variant there is a need for several variants.
+3
Oleg Leonov
source
to share
1 answer
I am trying to find a directive like #elif in C #. He exists?
Not
That it would be better to port the OCaml Camlp5 preprocessor to F #. It not only has directives like macros but much more, see the documentation .
OCaml was ported to Microsoft.NET, then massaged into F #. Therefore, most of any OCaml code translates almost line to line in F #. However, there are some parts of OCaml, especially metafiles, that don't translate directly to F #, and workarounds must be followed.
+3
Guy Coder
source
to share