Yep, exactly. Thereby defeating one of the goals o...
# announcements
m
Yep, exactly. Thereby defeating one of the goals of inline classes. Lightweight Strong Typing of objects. So instead of a function that takes
fun process(accountNumber:String, bankNumber:String)
, it can now be strongly typed as
fun process(accountNumber:AccountNumber, bankNumber:BankNumber)
even though they’re fundamentally String. One could do that before by creating a class, BUT would incur the overhead of class creation/cleanup.