mattinger
11/29/2023, 2:38 PMGoing back up in the code, we mentioned that lookupOperationType needed an explicit defaultValue because default arguments are not available to Swift.
I’m a little confused by this, because swift does indeed support default parameter values. I’m not sure when that was added and if this is a limitation due to what version of swift that SKIE is targeting, or some other limitation.
So, I then tried to use the annotations:
@DefaultArgumentInterop.Enabled
@DefaultArgumentInterop.MaximumDefaultArgumentCount(25)
Unfortunately, we have some very large data classes with a really huge number of constructor parameters. Even at this number, the process kept running out of heap space (i gave it 4g of memory) trying to build.
I’m curious what SKIE is doing under the covers (it is doing something like what @JvmOverloads does), or is it smart enough to generate swift functions with default values?Filip Dolník
11/29/2023, 2:52 PMmattinger
11/29/2023, 3:13 PMmattinger
11/29/2023, 3:14 PMFilip Dolník
11/29/2023, 3:19 PMFilip Dolník
11/29/2023, 3:23 PM