Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
ed(1) in Rust (github.com/ash2x3zb9cy)
5 points by beefhash on Oct 24, 2020 | hide | past | favorite | 1 comment


This repo is just an obvious and trivial joke about ed, which notoriously uses "?" for all error messages:

    let mut x = String::new();
    loop {
        io::stdin().read_line(&mut x)
            .expect("?");
        println!("?");
    }
It would actually be fun to implement ed in Rust—it's the best of of the popular low-bandwidth "line editors", with some nice support for regex-based search and replace. It's one of the few editors that could be a used with a slow line-by-line printer as the only output device.




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

Search: