The Pony libraries, of course, want to abstract platform differences. Sometimes you may want a
use command that only works under certain circumstances, most commonly only on a particular OS or only for debug builds. You can do this by specifying a condition for a
use "foo" if linux
use "bar" if (windows and debug)
Use conditions can use any of the methods defined in
builtin/Platform as conditions.
There are currently the following booleans defined:
(freebsd or linux or osx),
They can also use the operators
not. As with other expressions in Pony, parentheses must be used to indicate precedence if more than one of
xor is used.
Any use command whose condition evaluates to false is ignored.