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

exponentiation opporator #90

Open
locdly opened this issue Aug 10, 2023 · 1 comment
Open

exponentiation opporator #90

locdly opened this issue Aug 10, 2023 · 1 comment

Comments

@locdly
Copy link

locdly commented Aug 10, 2023

Bug Report: Missing Exponentiation Operator (^) in Quorum Programming Language

Summary:
The Quorum programming language currently lacks a simple exponentiation operator (^) for performing mathematical power operations. This absence makes it less intuitive for users who are accustomed to using the ^ operator in other programming languages.

Description:
Currently, Quorum does not support the common ^ operator for exponentiation, unlike many other programming languages. This operator is a standard mathematical symbol that users often expect to use for raising numbers to a power. Instead, users are required to use the power() function for exponentiation, which can be less familiar and more verbose.

Expected Behavior:
It would be beneficial for the Quorum programming language to include a simple ^ operator for exponentiation, consistent with common mathematical notation and many other programming languages. This would improve the language's user-friendliness and alignment with established mathematical conventions.

Steps to Reproduce:

  1. Attempt to use the ^ operator for exponentiation in a Quorum code snippet.
  2. Observe that the ^ operator is not recognized, leading to a syntax error.

Current Workaround:
To perform exponentiation in Quorum, users need to use the power() function. For example:

Suggested Solution:
Implement the ^ operator for exponentiation in the Quorum programming language, providing users with a more intuitive and familiar way to perform power operations.

Additional Notes:
This change should be accompanied by appropriate updates to the Quorum language documentation and examples to reflect the newly introduced ^ operator.

Environment: Quorum IDE

  • Quorum Version: Quorum Studio 5.0.4: August 8th 2023
  • Operating System: Windows 11

Thank you for considering this enhancement to the Quorum programming language. Your efforts in making Quorum more user-friendly are greatly appreciated!

Best regards,
Loc Ly

@andreas-stefik
Copy link
Contributor

Hey there,

Thanks for the suggestion. We haven't gathered any evidence on this particular operator (e.g., alternative symbols), but will consider it for a future version and keep this bug around to mark whether we do it.

Stefik

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

No branches or pull requests

2 participants