News for hackers. Stuff that matters.
Re:Fast Rust Builds by brundolf on Sunday September 05, 2021 @02:56PM (#28426744)
Dot syntax is used when accessing a function/property on a value, :: is used when accessing a function/property on a module or type. I think it's great having this visual distinction, especially given that you can call the same function in either style:

  let x = Foo::new();

  x.bar();
  Foo::bar(x);
Re:Fast Rust Builds by Jare on Sunday September 05, 2021 @03:42PM (#28427134)
I thought the distinction was meaningful until I worked in a language that used dot pervasively, and saw that it was totally fine.