Open hobofan opened 8 years ago
During work on #40, #42 it also came to my wind that this should also include tips on how to keep backend independence.
For example import via
use collenchyma::framworks::*;
instead of
use collenchyma::framworks::{Native,Cuda};
which would actually need to look like this if it should be properly backend independent and compileable.
#[cfg(feature = "native")]
use collenchyma::framworks::Native;
#[cfg(feature = "cuda")]
use collenchyma::framworks::Cuda;
Since we heavily use feature flags for frameworks across all plugins, we will want a documentation on how to use them (in combinatinon with plugins) to lower the barrier of entry.
Example: