5 ms·
Rust is inspired by C++ which use '::' to access names inside a namespace, here 'vec' and io are module/namespace not object, it's a static lookup. '.' is stil
by zeugma 14y ago
Rust is inspired by C++ which use '::' to access names inside a namespace, here 'vec' and io are module/namespace not object, it's a static lookup.
'.' is still used for object lookup which is dynamic.