Conversation
|
@rikhuijzer: Sume Rust experiments for modifying complete paths on the Rust side. With |
| #[derive(Serialize,Deserialize)] | ||
| #[serde(untagged)] | ||
| enum Segment { | ||
| Line(String /* "l" */, Point), |
| initiate_protocol!(); | ||
|
|
||
| type Point = Vec<f64>; | ||
| type Point = ArrayVec<f64, 4>; |
There was a problem hiding this comment.
Yes this is great. I was also thinking about something like this
|
Experimenting. I like it
Yes I also ran into this a few times. This is Rust’s blessing and curse I think. I was fixing it by trying to be more strict at the Typst side. I fixed one int case in I believe #849 (on phone now so can’t check) which didn’t seem too bad. Naja I’m also open to other ideas these were just my 2 cents |
|
I think static typing is a massive improvement in programming in general, but people are allowed to disagree with me on this one |
5651c33 to
e317f7c
Compare
7fb3a2a to
f95c1f2
Compare
Some tests.