-
**Problem**
Current Builder pattern is very error prone.
**Proposal**
Introduce Typestate.
-
#References
1. https://rustype.github.io/notes/notes/rust-typestate-series/rust-typestate-part-1
2. http://cliffle.com/blog/rust-typestate/
3. https://zerotomastery.io/blog/rust-typestate-patterns/
-
First: thanks for bringing more safety to the machines!
I was wondering whether support is planned for [Typestates](https://xstate.js.org/docs/guides/typescript.html#typestates), to narrow contex…
-
These are the remaining items to be done as part of a `3.0` release.
## RC release
- [x] `#[builder(on(..., transparent))]` support (#155)
- [x] Rename `__private` module to `__` because it a…
-
I tried this code with `rustc --target riscv64gc-unknown-linux-gnu rust_code.rs`:
```rust
#![feature(abi_riscv_interrupt)]
pub extern "riscv-interrupt-m" fn interrupt_machine(_a: u8, _b: u8, _c: u8) …
-
@mehcode just reminded me that this crate exists after the following discussion on Reddit: https://www.reddit.com/r/rust/comments/shetb1/show_rrust_a_rust_implementation_of_the_realworld/hv6og8t/?cont…
-
While it is nice to have the type safety when creating requests, the distinction when creating a GET request without a body and a POST request without a body makes it harder when using code generation…
-
When I configure CMake, I get two errors. I can fix these by removing the extra space in the names of the " LightSwitch_Example" and "Http_connection " directories; but when I run `make` I then get an…
pkeir updated
5 months ago
-
For TCP, there are two kinds of sockets, those bound (on which `accept` makes sense), and those connected or accepted (on which read/write makes sense). These are the same type in POSIX systems, but c…
-
This might not fall in line as nicely with the theme of "overcoming the borrow checker", but I quite like sharing this post with people to help them understand the builder pattern, and additional prop…