Would help writing code that is automatically portable between FABLE and FSC. Can do this anyway with com line symbols but this would make such functionality work out of the box.
Proposed symbol:
(adjust underscores to be compatible with global conventions I probably don't know)
Maybe it could add antoher symbol which gives version information. But not sure if that's practical.
Given that Fable is evolving very quickly now, probably including version information won't be very practical indeed. In F# I think usually the double underscore is used for macros like __SOURCE_DIRECTORY__
, but compilation symbols tend to be simpler (INTERACTIVE
). Probably just FABLE
would be too simple. FABLE_COMPILER
?
Yes I would go with FABLE_COMPILER
FABLE_COMPILER
is good with me.
However, I'd still wonder whether _FABLE_COMPILER_
or _FABLE_COMPILER
would be better with the underscores indicating system-level status. I defer to whatever others more familiar with F#/Javascript conventions think.
Most helpful comment
Yes I would go with FABLE_COMPILER