Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Numeric Separatorsの対応、ビット演算子の書き直し #1312

Merged
merged 19 commits into from
May 9, 2021
Merged

feat: Numeric Separatorsの対応、ビット演算子の書き直し #1312

merged 19 commits into from
May 9, 2021

Conversation

azu
Copy link
Collaborator

@azu azu commented May 7, 2021

変更点

  • ES2021でサポートされたNumeric Separatorsを追加
  • ビット演算子を書き直し、ビット演算の解説の追加、図の追加など
  • チートシートにNumeric Separatorsを追加

fix #1311

@bot-user
Copy link

bot-user commented May 7, 2021

Deploy preview for js-primer ready!

Built with commit dca0202

https://deploy-preview-1312--js-primer.netlify.app

@azu
Copy link
Collaborator Author

azu commented May 7, 2021

  • bitとビットで揺れてるので統一する

@azu
Copy link
Collaborator Author

azu commented May 7, 2021

論理積演算子(&)はビッ

みたいにビットというprefixが省かれてるので、最初は省かないようにする

@azu
Copy link
Collaborator Author

azu commented May 7, 2021

0のビットを右から詰めます。

←、→って表現がECMAScriptっぽくないので修正する。
最上位、最下位? かな

@azu azu changed the title feat(basic): ビット演算子の書き直し feat: Numeric Separatorsの対応、ビット演算子の書き直し May 9, 2021
source/appendix/links/README.md Outdated Show resolved Hide resolved
@@ -255,6 +255,38 @@ BigIntは整数を扱うデータ型であるため、次のように小数点

<!-- textlint-enable -->

### [ES2021] Numeric Separators {#numeric-separators}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Numeric Separatorsをデータ型に追加。
それぞれのリテラルに書くかまよったけど、Numeric Separatorsとして数値のリテラルで使えるよという形にした。

@@ -487,69 +487,104 @@ console.log(43 <= 42); // => false

## ビット演算子 {#bit-operator}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ビット演算は書き直し。
図も入れた。
ビット演算自体がユースケースにないので、これ自体をまるっとスキップするのも検討する

@@ -103,6 +103,7 @@ JavaScriptの言語機能に関するチートシートです。
| `0b10` | [ES2015] **2進数**の整数リテラル | [データ型とリテラル][] |
| `0o777` | [ES2015] **8進数**の整数リテラル | [データ型とリテラル][] |
| `0x30A2` | **16進数**の整数リテラル | [データ型とリテラル][] |
| `123_456` | [ES2021]数値リテラルにおける**Numeric Separators** | [データ型とリテラル][] |
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Numeric Separatorsをチートシートに追加

@azu azu merged commit acfcf22 into asciidwango:master May 9, 2021
@azu azu deleted the feature/1311 branch May 9, 2021 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numeric Separators
2 participants