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

The better Haskell analog are the unsafePerformIO and related functions which match up pretty closely with unsafe in rust.



can someone explain why this (of all the flamebaity/controversial comments I make) is getting downvoted?


Okay, since you asked: Your comment doesn't make sense.

The parent comment: "rust unsafe and haskell unsafePerformIO are different!"

Your comment: "You forgot about unsafePerformIO! It's the same as rust unsafe!"


Actually, the OP was talking about Safe Haskell, which is not the same as unsafePerformIO. While the two are related, they are different. While Safe Haskell does not really map to the Rust unsafe functions, unsafePerformIO does.


Saying something different doesn't imply disagreement. He's just adding information.


It's phrased as if he's talking about a different topic, but actually he's talking about the same topic.




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

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

Search: