Could somebody explain why this two macroses works the same?
#[macro_export]
macro_rules! vec2 {
( $( $x:expr ),* ) => {
{
let mut temp_vec = Vec::new();
$(
temp_vec.push($x);
)? // this one works the same as below
temp_vec
}
};
}
#[macro_export]
macro_rules! vec3 {
( $( $x:expr ),* ) => {
{
let mut temp_vec = Vec::new();
$(
temp_vec.push($x);
)* // this one works the same as above
temp_vec
}
};
}