You're viewing a single thread.
View all comments
22
comments
Height should be a float
14 3 ReplyI don't know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
10 1 ReplyAfaik rust doesn't have functions like that as they lead to unsafe code that's impossible to check variable lifetimes for. I think OP created the jump function.
14 0 ReplyThey created it. The compiler says the jump function is in src/main.rs
14 0 Reply
It's height in centimeters
6 0 ReplyNo one can jump an exact nummer of centimeters either
1 0 Reply
Chad quantised rust
4 0 ReplyBut then wouldn't it be
fly(height: f64)
instead ofjump(height: i32)
?1 0 ReplyNever use floats.
1 0 Reply
You've viewed 22 comments.
Scroll to top