Hacker News new | ask | show | jobs
by onionisafruit 1512 days ago
> Warning: Please do not put this library anywhere near production. It is full of unsafe, unethical, cursed code that occasionally works for inexplicable reasons.

I wish I knew Rust so I could fully appreciate this unethical code.

1 comments

I didn't look at the code, but I believe it's cursed because of what it does, not because it's unidiomatic Rust.

Terminal handling is a cursed realm. This project is basically all terminal handling, done in a place where no terminal is allowed to exist, and interacting with a badly documented environment that really does not wish it to exist. There are probably some unsafe blocks, but I don't believe the code itself is the extraordinary part.