Why does Rust use :: instead of . for calling a class method?
Counter::increment() rather than Counter.increment() seems like an unnecessary change to make.
Why does Rust use :: instead of . for calling a class method?
Counter::increment() rather than Counter.increment() seems like an unnecessary change to make.
Because the . triggers them and reminds them of the sepples and cniles.
It follows C++'s scope resolution operator, which is used to access static class members and resolve namespaces.
at this point it's hard to know if this is bait. half of Any Forums really is this retarded nowadays.
The dot implies a binary. What is before the dot, and what is after the dot.
i looked into this language because i hear it shilled everywhere and now i'm experiencing a sunk cost fallacy because i refuse to get filtered by it. someone save me
Any community that gets its laughs by pretending to be idiots will eventually be flooded by actual idiots who mistakenly believe that they're in good company.
Switch to C++. Problem solved.
>reminds them of the sepples
more than :: does?
Elaborate.