Closed Bug 1476965 Opened 8 years ago Closed 7 years ago

Document BigInt

Categories

(Developer Documentation Graveyard :: JavaScript, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jhildebrand, Assigned: sarah.groff.palermo, Mentored)

References

()

Details

The TC39 proposal: https://github.com/tc39/proposal-bigint Firefox is working on support in bug 1366287. V8/nodejs are already shipping.
The bug you reference has already got a dev-doc-needed keyword on it, so this bug is unnecessary. We will pick up the aforementioned bug with our tooling as soon as it is resolved, so this will be documented in good time. However, if you think there is a strong strategic necessity in getting it documented early, feel free to drop me a mail, and I'll be happy to discuss it.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
I think we should document this sooner rather than later. I'm adding my brain dump on what I think needs to be done. There might be more work involved here, but this is a start. BigInt is a new primitive type and this needs to be added to a few places (with notes on type conversation) Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_Types#Data_types Update: https://developer.mozilla.org/en-US/docs/Glossary/Primitive Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures Update: https://developer.mozilla.org/en-US/docs/Glossary/Falsy Update: https://developer.mozilla.org/en-US/docs/Glossary/Truthy BigInt should be mentioned/referenced from relevant Number docs Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger BigInt comes with a new numeric literal (n) Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Numeric_literals BigInt and comparisons: Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators BigInt and arithmetic / more operators: Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof BigInt API: New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN (static method) New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN (static method) New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/prototype New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/valueOf BigInt TypedArray API: Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt64Array New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigUint64Array Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/prototype New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getBigInt64 New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getBigUint64 New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setBigInt64 New page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setBigUint64 BigInt and interaction with other parts of JS (add examples) Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt Guide update (discuss when to use number and when BigInt) Update: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Numbers_and_dates New pages need compat data and interactive examples, see https://github.com/mdn/browser-compat-data/ https://github.com/mdn/interactive-examples
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Priority: -- → P2
Sarah wants to take this and I'm happy to mentor this work. Feel free to ask questions here or email me. A "copy from" page is probably https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number
Assignee: nobody → sarah.groff.palermo
Mentor: fscholz
Ah, I've finally had a second to add the beginnings of the BigInt page — https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt It mostly repurposes documentation I put together for the BigInt repo at https://github.com/tc39/proposal-bigint. The page is still missing the compatibility table and specifications, as well as properties and methods, but now we have a basic description, some examples, and a page that can be linked to from all the update pages. And that is my plan — to do properties and methods next, then start from the top of the list Florian so kindly put together and add references to BigInt. Also, this is the first MDN page I've done, so suggestions and feedback welcome.

Closing this; we are now tracking this work here: https://github.com/mdn/sprints/issues/1002

Status: REOPENED → RESOLVED
Closed: 8 years ago → 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.