Skip to content
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

Proposal: Adding Power Operator Support to Expressions #647

Closed
progress0407 opened this issue Feb 20, 2024 · 2 comments
Closed

Proposal: Adding Power Operator Support to Expressions #647

progress0407 opened this issue Feb 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@progress0407
Copy link
Contributor

progress0407 commented Feb 20, 2024

Do you have any thoughts on adding support for the power operator in expressions?
The reason I ask is that looking at the expression documentation, it looks like you're planning to do it.

image

If you do, could you assign me as the lead for the power operator?

If you do create a power operator, how about a spec like this?
I'm not sure whether pow or power seems appropriate.

pow(path(VirusInRoom::number, 10))

I think it would be appreciated.

P.S.
TMI, but this article was written by the same Korean guy on DeepL with a translator
(he even ran this sentence through the translator)

@shouwn
Copy link
Member

shouwn commented Feb 21, 2024

Hi progress0407.

I think I forgot to register power as an issue. I'd like you to create it if you don't mind.

The Kotlin JDSL aims to represent the syntax of JPQL directly. This is because I don't want the Kotlin JDSL to become a huddle when creating queries. So it seems like a better way to make it a function named power instead of pow.

@shouwn shouwn added the enhancement New feature or request label Feb 21, 2024
@progress0407
Copy link
Contributor Author

Hi progress0407.

I think I forgot to register power as an issue. I'd like you to create it if you don't mind.

The Kotlin JDSL aims to represent the syntax of JPQL directly. This is because I don't want the Kotlin JDSL to become a huddle when creating queries. So it seems like a better way to make it a function named power instead of pow.

Thanks for the quick response hehe
I'll do it with power!
I saw your last commit comment!
You're very diligent :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants