javascript-tutorial / javascript-tutorial/ru.javascript.info

[Предложение: учебник]: Побитовые операции с числами типа BigInt

Open
#1,918 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

suggestion: tutorial
Dominant language
HTML
Stars
4.1k
Forks
922
PR merge metrics
No merged PRs in 30d

Description

Описание

Числовой тип BigInt уже достаточно давно добавлен в JS и поддерживается всеми современными браузерами.
В учебнике есть отдельные статьи про BigInt и Побитовые операторы.
Но в статье о побитовых операторах нет никакого упоминания про BigInt, хотя многие ограничения по количеству бит в этих числах несколько отличается от обычных чисел типа number. А в статье про BigInt нет упоминания про побитовые операции над ними.
Предлагаю или сделать отдельную статью типа "Побитовые операторы над BigInt" и добавить в обе вышеуказанные статьи ссылки на неё. Или дополнить обе вышеуказанные статьи: "Побитовые операторы" дополнить разделом про BigInt, а "BigInt" дополнить разделом про побитовые операции над ними.

Мотивация

Иначе информация в обеих существующих статьях выглядит как неполная.

Готовы ли вы принять участие в реализации данного предложения?

Нет, я не готов(а) принимать участие. Оставляю эту возможность редакторам учебника.

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

Start with the linked BigInt and Bitwise operators articles and compare how each currently describes numeric operations. Decide with the maintainers whether to add a BigInt section to both articles or create a separate article with links from both. Done means the tutorial explains BigInt bitwise operations and no longer leaves this information split or missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.