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

名前空間 #3

Closed
slofp opened this issue Nov 24, 2023 · 4 comments
Closed

名前空間 #3

slofp opened this issue Nov 24, 2023 · 4 comments
Labels
project/Lib Ai.js main source issue

Comments

@slofp
Copy link
Owner

slofp commented Nov 24, 2023

これ実際に思ったのが

javascriptは

Object.props

のみで判断するけど、

AiScriptは

Object:props

Namespace:props

の2通りあるから、そこの区別をどうにかしたい

@slofp
Copy link
Owner Author

slofp commented Dec 5, 2023

こういった形はいいかもしれない

@namespace
class Inp {
  static get a() { return 1 }
  static ap() {
    
  }
}
:: Inp {
  let a = 1
  @ap() {
  }
}

みたいな

@slofp
Copy link
Owner Author

slofp commented Dec 7, 2023

この場合getが動作を保証しなくなる

@slofp slofp added the project/Lib Ai.js main source issue label Dec 26, 2023
@slofp
Copy link
Owner Author

slofp commented Dec 28, 2023

いらない気がしてきた

@slofp
Copy link
Owner Author

slofp commented Dec 28, 2023

javascriptから変換するのに、名前空間は存在しない。
javascriptだけの互換性とaiscriptの変換を考慮したときに特段ファイルimportなどは存在しないので実装する必要は薄いのでcloseする

@slofp slofp closed this as completed Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project/Lib Ai.js main source issue
Projects
None yet
Development

No branches or pull requests

1 participant