Skip to content

Conversation

@ktoso
Copy link
Collaborator

@ktoso ktoso commented Oct 24, 2024

By adding -parameters when we build java code using the java compiler plugin we retain parameter names and therefore we get:

  func sayHello(_ x: Int32, _ y: Int32) -> Int32

rather than

  func sayHello(_ arg0: Int32, _ arg1: Int32) -> Int32

which is a slightly nicer developer experience.

When using with already built jars we can't influence that, but whenever using with java sources we actually build we should recommend keeping that flag probably.

ktoso added 3 commits October 24, 2024 14:40
By adding `-parameters` when we build java code using the java compiler plugin we retain parameter names and therefore we get:

```
  func sayHello(_ x: Int32, _ y: Int32) -> Int32
```

rather than

```
  func sayHello(_ arg0: Int32, _ arg1: Int32) -> Int32
```

which is a slightly nicer developer experience.

When using with already built jars we can't influence that, but whenever using with java sources we actually build we should recommend keeping that flag probably.
@ktoso ktoso merged commit e16ef46 into main Oct 24, 2024
11 checks passed
@ktoso ktoso deleted the keep-parameters branch October 24, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants