Hacker News new | past | comments | ask | show | jobs | submit login

Are the students who failed the pointer class the same ones in the fmap class?

I didn’t say “using map” I said understanding the type signature. For example, after introducing map can you write its type signature? That’s abstract reasoning.

Pointers are a problem in Haskell too. They exist in any random access memory system.






Whether pointers exist is irrelevant. What matters is if they're exposed to the programmer. And even then it mostly only matters if they're mutable or if you have to free them manually.

Sure, IORef is a thing, but it's hardly comparable to the prevalence of pointers in C. I use pointers constantly. I don't think I've ever used an IORef.


If you have an array and an index, you have all the complexity of pointers. The only difference is that Haskell will bounds check every array access, which is also a debug option for pointer deref.

You are very disconnected from learners. They get confused over mutability, not bounds checking, which is not an option for raw pointers consistently



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: