4 ms·
> The `x := 10` example is actually somewhat ambiguous. If the language fixes the type of `10` then `x := 10` is legal. If it's an unspecified type (as is typic
by stcg 3y ago
> The `x := 10` example is actually somewhat ambiguous. If the language fixes the type of `10` then `x := 10` is legal. If it's an unspecified type (as is typically the case), you'd have to write the type down.
For that case I like a type signifier as part of the number literal expression, like this: `x := 10f32` or `x := 10i32`.