mapbox / mapbox/point-geometry

Question about function vs class Choice in Code

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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.