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
次のように、拡張メソッドの定義時に型キーワードを省略できるようにし、省略された場合はvariableの拡張メソッドにする。
variable
void Out(this v) { print(v); }
ほかの関数が型キーワードを省略できるのに対して拡張メソッドのみできないのは一貫性を損なうから。 また、AliceScript内部では普通に行えるから。
型キーワードが省略された場合はVariable型に関連付ける
型キーワードをつけるのを忘れてしまうことがある
The text was updated successfully, but these errors were encountered:
実装 #107
109fe24
No branches or pull requests
新機能の名前
型キーワードを省略した拡張メソッド
次のように、拡張メソッドの定義時に型キーワードを省略できるようにし、省略された場合は
variable
の拡張メソッドにする。動機
ほかの関数が型キーワードを省略できるのに対して拡張メソッドのみできないのは一貫性を損なうから。
また、AliceScript内部では普通に行えるから。
詳細設計
型キーワードが省略された場合はVariable型に関連付ける
欠点
型キーワードをつけるのを忘れてしまうことがある
前例
未確定の設計
The text was updated successfully, but these errors were encountered: