8 ms·
Rust values can be ignored as well. There is no language to my knowledge that prevent you from ignoring values.
by Thaxll 2y ago
Rust values can be ignored as well.
There is no language to my knowledge that prevent you from ignoring values.
- k_g_b_ 2y agoAny language that implements linear types has values that can't be ignored and need to be passed to some "destructor" (could just be a deconstruction pattern assignment/similar). Examples: Austral, some of these https://en.m.wikipedia.org/wiki/Substructural_type_system#Programming_languages https://en.m.wikipedia.org/wiki/Substructural_type_system#Pr... in particular at least ATS, Alms, Granule, LinearML Though most haven't gone beyond research languages yet.