y

    Youssef Shoaib [MOD]

    1 year ago
    After an interesting discussion about a nice Java interop feature where you can allow Java callers to pass in
    null
    in place of default parameters to have the default values substituted in automatically, I went on and implemented that in a compiler plugin. This might be useful for someone (I guess), even as a starting stone into learning compiler plugins. Any feedback or criticism is very recommended 😄
    Tomasz Krakowiak

    Tomasz Krakowiak

    1 year ago
    What if parameter is of nullable type, but default value is different from null?
    y

    Youssef Shoaib [MOD]

    1 year ago
    Currently, it just replaces null with the default value even if the type is nullable. However, that behaviour probably isn't the most correct I would say. It's just kind of difficult to determine what the correct and least surprising behaviour should be here