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

enum を シンボル名にしたい #365

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Conversation

ousttrue
Copy link
Contributor

@ousttrue ousttrue commented Apr 5, 2022

C# コード生成で enum 型を利用したいので、一般的なプログラム言語でシンボル名として許可される [a-zA-Z][a-zA-Z0-9] 的な範囲にしたいです。

バックエンドが文字列になるので C# では純粋な enum にできませんが、
そこはシリアライザで吸収できます。

@ousttrue ousttrue requested a review from 0b5vr April 5, 2022 04:52
@0b5vr
Copy link
Contributor

0b5vr commented Apr 6, 2022

あーーー確かに。盲点でした。

命名もこれで良いかと思います。
あえて次点を出すなら PX NX PY NY ... ですが、 まず PositiveX のほうが分かりやすいでしょう。

@0b5vr
Copy link
Contributor

0b5vr commented Apr 6, 2022

ついでにドキュメントの方も修正をお願いできますでしょうか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants