This is a static archive of wezm@decentralised.social
https://mastodon.decentralised.social/@wezm is now my primary account
@schlink Really good write-up. Only bit I didn’t follow was the bit on error handling.
This seems the same as Rust except you didn’t have to declare the error type in the signature?
E.g.
fn execute_player_move(this_move_position: usize, player_number: u8, board: [9]u8) ![9]u8
vs.
fn execute_player_move(this_move_position: usize, player_number: u8, board: [u8; 9]) -> Result<[u8; 9], MoveError>