logoalt Hacker News

throwaway27448yesterday at 11:21 PM1 replyview on HN

Learning to program with pointers is enormously useful. It's simply bad software engineering to not use typing to enforce constraints on access to pointers (or addresses, or however you'd like to term them)


Replies

doyougnutoday at 1:35 AM

IIRC that talk of about using indices (u32) to represent data in an array. That is orthogonal to representing that information in the type system since you can just type the index