We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#278 (comment) によると、JavascriptのErrorの生成にはスタックトレース収集などのコストがあると考えられるらしい AiScript上のエラーにJavascript上のスタックトレースの情報は特に必要ないと思われるため、Errorを引き継がなくてもいいのでは?
The text was updated successfully, but these errors were encountered:
AiScriptErrorが作られるのって、インタプリタが止まるときだけなんですよね。 制御構文のたびにthrowするなら邪魔なコストですが、ホスト側がキャッチできるエラーはErrorを継承しているべきだと思います。
Sorry, something went wrong.
うーん、Errorを継承していて何か良いことってあります?
catchした時に統一的な手法で処理出来る事か…
そう考えると確かに別にErrorじゃなくする理由が無いな…
No branches or pull requests
#278 (comment) によると、JavascriptのErrorの生成にはスタックトレース収集などのコストがあると考えられるらしい
AiScript上のエラーにJavascript上のスタックトレースの情報は特に必要ないと思われるため、Errorを引き継がなくてもいいのでは?
The text was updated successfully, but these errors were encountered: