|
|
|
|
|
by skybrian
4450 days ago
|
|
I think it works even better if you can get help from the type system. For example, the SafeHtml interface in GWT [1] gives you some safety from Java's type checking and can also make additional static analysis easier. (Then it becomes an exercise in making sure the API is used as intended.) Perhaps something similar could be done using typedefs in C? [1] http://www.gwtproject.org/javadoc/latest/com/google/gwt/safe... |
|
That said, one could use actual wrapper structs around the various types.