c3c
c3c copied to clipboard
Consider additional checks on parameters
in, const, readonly => only read
inout, mutable, readwrite => modified and read
out, writeonly => write only
initialize => always written to
The difficulty is adding the syntax in a good way.
Idea:
/**
* @param f (in) - inparameter
* @param x (inout) - modify
* @param w (out, init) - will always initialize
**/
Additional ideas: retain for escaping pointers.
in, out, inout are in. Retain and init are missing yet.