Skip to content

[Compiler plugin] Add a mechanism to handle function calls to stdlib that can appear as df api arguments #914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

koperagen
Copy link
Collaborator

This change is needed because argument for readJsonStr is almost always a function call to either trimMargin or trimIndent with a constant String argument. Bonus: easy to add Pair("a", listOf())

@koperagen koperagen added the Compiler plugin Anything related to the DataFrame Compiler Plugin label Oct 9, 2024
@koperagen koperagen added this to the 0.15.0 milestone Oct 9, 2024
@koperagen koperagen self-assigned this Oct 9, 2024
@Jolanrensen Jolanrensen self-requested a review October 10, 2024 14:31
@@ -5,7 +5,7 @@ import org.jetbrains.kotlinx.dataframe.io.*

fun box(): String {
val df = dataFrameOf(
"a" to listOf(1, 2),
Pair("a", listOf(1, 2))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice :)

@koperagen koperagen merged commit 61865d8 into master Oct 10, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler plugin Anything related to the DataFrame Compiler Plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants