Is there a way to specify that a symbol should not be defined, in an F# #if directive? Something like this:
#if not COMPILED
// do script stuff here
#endif
Though the above is a syntax error. The same thing is accomplished by
#if COMPILED
#else
// do script stuff here
#endif
but I wonder if there’s a neater way?
(edit: I’m asking about the general case, not the particular case of COMPILED/SCRIPT. Sorry, I forgot to mention that from the beginning.)
No, there’s no neater way, according to MSDN