Hopes and dreams of things that could exist
The Real programming language
fn add(a: num, b: num) -> num {
a + b
}
let s = add(1, 2);
print(s);
Its file extension could be .rl!
mem::swap()
A video game where you swap places with your enemies
You can shoot a projectile. When it hits somebody, it creates a link (a line between you). If a link is blocked by a wall, it breaks. After about 3 seconds you swap places with the linked enemy
You can defeat enemies by, for example timing yourself that you almost get hurt by something, but get swapped and the enemy is the one who gets hurt instead
Named after the std::mem::swap() function in Rust. I managed to use it for the swapping in my prototype!