Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/00330...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: