mapbox / mapbox/point-geometry
Question about function vs class Choice in Code
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 37
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Hey there! Newbie here 😊 Just curious—why’d you go with function instead of class for defining Point? Trying to wrap my head around the differences. Appreciate any insight!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue asks why Point is defined as a function rather than a class, but it names no files or tests. Read the repository's Point implementation and its usage to understand the design choice; done would require an explanation rather than a code change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100