dngrs

joined 2 years ago
[–] [email protected] 1 points 2 days ago* (last edited 2 days ago)

@Valmond (... but if you want an integer type that's platform dependent, Rust _has_ usize/isize. Those are "pointer sized".)

[–] [email protected] 1 points 2 days ago (1 children)

@Valmond yeah, I now realize you were merely rephrasing what I called "default integer type". It's i32 in Rust. Not i16. But you can't name that type, it's just the default for literals.

[–] [email protected] 1 points 2 days ago (3 children)

@Valmond the conversation used to be about Rust. You asked about "default int", a concept from C/C++. I am talking about this not being a *universal* concept. It is specific to those languages.

[–] [email protected] 1 points 3 days ago (5 children)

@Valmond I'm aware of that, but that's for different languages. C/C++ don't get to define if programming in general has a "default int"

[–] [email protected] 1 points 3 days ago (7 children)

@Valmond what do you mean by default int? (Either way, probably not; there's usize though)

[–] [email protected] 4 points 3 days ago (9 children)