Can anybody explain the main difference between th...
# announcements
d
Can anybody explain the main difference between these two stdlib functions:
with
vs
run
? Most likely, I don’t understand something, but what else distinguishes them, except the signature?
Copy code
val foo: Foo()
with(foo) { /* ... */ }
foo.run { /* ... */ }