2 ms·
Circular data types are perfectly fine with optional types. You can have optional<*raw_pointer> for example which after compilation may even be equivalent to a
by viraptor 9y ago
Circular data types are perfectly fine with optional types. You can have optional<*raw_pointer> for example which after compilation may even be equivalent to a simple null, since valid pointers are not-null.
This was discussed in rust some time ago: https://mail.mozilla.org/pipermail/rust-dev/2013-March/003307.html https://mail.mozilla.org/pipermail/rust-dev/2013-March/00330...