Compile-time "if" statement for conditional inclusion of code.
Description
This is a ppx extension which adds if#const
and match#const
constructs to
OCaml. They behave like normal if
and const
, but conditions are evaluated
at compile time and AST sections not selected are excluded from the program
completely. In conjunction with ppx_getenv, this can be used for conditional
compilation of code.
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
- Last Published
- 10 Jun 2015
- Authors
- Maintainers
Sources
Dependencies
Reverse Dependencies