mariuszgromada / mariuszgromada/MathParser.org-mXparser

Binary operator request or customization

Open
#337 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
955
Forks
158
PR merge metrics
No merged PRs in 30d

Description

Hello
Do you have in plans to add binary operator like "??" that will return first parameter if it is defined (not nan) or second.

Or may be there any option to implement the operator myself?

I know about coalesce function and I know that I can implement custom function, but I need exactly operator, not function.

And thanks for the great library you did!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by reviewing the existing coalesce behavior and documented extension points for custom operators; clarify whether ?? should be built in or user-definable, then establish its parsing and undefined/NaN semantics. Done means the requested operator behavior and customization scope are defined and covered by tests and documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.