rs-kilo/README.md
2019-09-19 12:21:23 -04:00

16 lines
752 B
Markdown

# Oxidized Kilo
An experimental reimplementation of the [Kilo](https://viewsourcecode.org/snaptoken/kilo/index.html)
tutorial with a Rust implementation.
## Implementation notes:
* The `editor` prefix has been removed from all the editor methods. Since this implementation
uses `impl`s on a shared `Editor` struct, the prefix is redundant
* Any C equivalent functionality based on memory allocating/deallocating, or other manual book-keeping is instead
implemented in a more idiomatic Rust fashion.
* Row structs are referenced by their index in the Editor struct, rather than as a direct reference in method calls.
This generally simplifies dealing with the rules of Rust (borrow checker).
### Known issues:
* Tab key does not expand to an indent