Support complex and big numeric types?

Open
#15 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
backend

Research direction

Read the numeric comparison and truthiness implementation, then review how json.Number support from #14 is handled. Decide whether complex64, complex128, big.Int, big.Float, or big.Rat should be supported and which JSON parsers make them relevant; done means a clear scope decision, with behavior and tests specified for the selected types.

Written by the indexing model from the issue text.

Description

enhancement help wanted question

The implementation currently supports all of Go's core numeric types for comparison and truthiness except for complex64 and complex128. And as of #14 it also supports json.Numbers.

Should it also support complex64 and complex128? What about big.Int, big.Float, and big.Rat? Are those likely to be parsed from JSON? encoding/json does not, but perhaps other JSON parsers?

Is there a need to support these types?

Dominant language
Go
Stars
41
Forks
4
Avg merge
2d 8h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from theory/jsonpath

All issues in theory/jsonpath

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.