Y
Hacker News
new
|
ask
|
show
|
jobs
by
zeugma
5187 days 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.