4 ms·
Where could someone read about implementing immutability checks in a compiler? I’ve always wondered if there’s a way to know at compile time whether a value is
by adenozine 5y ago
Where could someone read about implementing immutability checks in a compiler?
I’ve always wondered if there’s a way to know at compile time whether a value is being mutated, rather than throwing a runtime exception.
- khnov 5y agoRust compiler do exactly what you need
- adenozine 5y agoI wouldn't bother with rust under any circumstance. And in any case, I'm wondering about compiler-writing resources, not compilers. I daresay you didn't even read what I wrote and just typed "hurr, Rust is good." I've seen a million comments like this, and it's largely the reason I'll never bother.
- scns 5y agoHe gave you an answer and your are beeing rude to him. Maybe check out how the Kotlin compiler does it.
- khnov 5y agoI think you didn't read what I wrote, did I say 'rust is good' ? I meant the rust compiler contains logic you are searching for. And you need to learn about being polite to people trying to help you.