|
|
|
|
|
by hota_mazi
2334 days ago
|
|
Kotlin also has it as "apply": Windows().apply {
width = 100
height = 200
}
Now, I can't help but see the following kind of code: val someStructure = ...
someStructure.x = ...
someStructure.y = ...
someStructure.name = ...
as an immediate language code smell |
|
https://odin-lang.org/docs/overview/#using-statement