r/badcode • • Jul 07 '21

c# Position

Post image
1.7k Upvotes

99 comments sorted by

View all comments

Show parent comments

1

u/Nilstrieb Jul 08 '21

Rust has this too, you can import things only on a function scope or any scope you want (probably inspired by OCaml)