And another question: Is there any way to let a pr...
# general-advice
c
And another question: Is there any way to let a property setter accept multiple types? Again for DSL stuff. This would be so much easier if we could just make Rust-like macros, lol
Copy code
val default: Int
  set(value: Int) { field = value }
  set(value: IntSupplier) { field = value.get() }

// so this can happen:
mybuilder {
  // either this:
  default = 10
  // or this:
  default = { longOperationToFetchDefault() }
}
a