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

feat: enhance API with Printf functionality and examples #1375

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

crStiv
Copy link

@crStiv crStiv commented Dec 27, 2024

Description

This pull request introduces the following changes to the frontend package:

  • Added a Printf function: Provides formatted output capabilities for debugging and better insight during computations.
  • Updated API and Compiler interfaces: Added new methods to handle variable and coefficient ID retrieval.
  • Examples: Added a new PrintfExample function demonstrating various use cases of the Printf functionality.
  • Tests: Implemented unit tests in api_test.go to validate the new Printf function, including edge cases and format variations.

Fixes #1239

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Unit Tests: Validated the correctness of Printf in api_test.go.
  • Example Execution: Ensured PrintfExample works as expected.

Benchmarking

  • Benchmark results will be provided in a subsequent update.

Checklist:

  • Performed self-review of code.
  • Commented code where necessary.
  • Updated relevant documentation.
  • Verified unit tests pass locally.
  • Ensured changes do not introduce breaking changes.
  • Validated golangci-lint does not produce errors locally.

Allow edits by maintainers for further improvements.

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.

feat: add format specifiers for api.Println or implement api.Printf
1 participant