01:31
@Seggan iirc Rust doesn't let 1
implicitly be a float, but Swift does
Both let you use 1.0
as a polymorphic float literal
Swift has some interesting rules around this though. All else being equal, 1
will prefer to be an Int
(=isize
) and 1.0
will prefer to be a Double
(=f64
)