-
Notifications
You must be signed in to change notification settings - Fork 39
enhance: 数値リテラルに指数表記を追加 #954
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
enhance: 数値リテラルに指数表記を追加 #954
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 29 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
これがあるとどのようなときに嬉しいのかしら? |
もともとのモチベーションは、JSON5やJSONとの互換性です。 |
|
ほむん |
AiScriptはJavaScriptで書かれたオブジェクトをそのままコピペ可能にしたいという理念的には指数表記できたほうがいいですね |
|
取り込んだ後になって大変申し訳ないのですが、AiScriptはJavaScript/JSONとの互換性追求よりも、(極端に不便でない範囲で)なるべく仕様がシンプルで実装が軽量な言語にした方が、AiScriptの主な用途・言語のアイデンティティを考えると良いのではないかと思い始めており、当機能については、そこまでスクリプト内で指数表記したい機会は多くないのではないかという独断と偏見で、いったんコメントアウトしておき、将来的に指数表記を行いたいという強い要望が発生した際に改めて提供するかどうか考えるという方針にしようと思います。 |
What
数値リテラルを指数表記で記述できるようにします。
Why
Resolves #951
Additional info (optional)