3 ms·
How would a language that wants to compete with C even work without a feature to directly address memory locations (i.e. "pointers")? I don't understand the "s
by flohofwoe 5y ago
How would a language that wants to compete with C even work without a feature to directly address memory locations (i.e. "pointers")?
I don't understand the "static typing vs type inference" argument, so I'll not comment on that :) (there are plenty of statically typed languages with type inference)
- zozbot234 5y ago> How would a language that wants to compete with C even work without a feature to directly address memory locations (i.e. "pointers")? "Pointer" types could just be library-based and architecture-specific. It doesn't really need to be part of the base language. This would make it easier to support things like GPU-bound code where general memory addressing isn't really a thing, or other features like multiple address spaces, segmented memory or the CHERI memory tagging extension.