docs: 非提供と決めた範囲を確定事項として資料へ反映する - #14
Merged
Merged
Conversation
順序の明示指定・EnumishSet / EnumishMap・シリアライゼーション系アドオンは 提供しない方針としたため、将来拡張としての記述を削除する。 enum 定数 1 つずつの kind 化も同様に、設計判断による非提供として明記する。 併せて対応カタログの可否表記を整理する。 - × を ×(設計)= 設計判断で提供しない と ×(不可)= 言語・実行環境の制約で 実現できない へ分割し、使用行の無くなった `A → B` 表記を廃止する - values() は entries が同等機能を提供するため ○ とする - EnumSet / EnumMap の行を削除する - 並びを entries → values → valueOf、ordinal → compareTo の順へ整える Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
生成する entries / valueOf / valueOfOrNull は EnumishCompanion の override で あり、Kotlin は override メンバーへの @JvmStatic を禁止している。 付与可能にするには EnumishCompanion interface を捨てて共変で束ねる型を失うほか ないため、SI.Enumish.getEntries() 形の static アクセスは提供できない。 未確認事項を根拠とした「将来拡張」の位置づけを撤回し、非提供の確定事由として 各資料と Java 消費側テストのコメントから v1 限定の表現を除く。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
「将来やるかもしれない」として残っていた記述のうち、提供しないと決めた範囲を確定事項へ書き換える。
併せて対応カタログの可否表記から曖昧さを取り除く。
変更点
非対応と決めた拡張の除去・カタログの可否表記の分割(3c4b781)
EnumishSet/EnumishMap・シリアライゼーション系アドオンの将来拡張記述を削除×を×(設計)(設計判断で提供しない)と×(不可)(言語・実行環境の制約で実現できない)へ分割し、使用行の無くなった
A → B表記を廃止values()はentriesが同等機能を提供するため○へEnumSet/EnumMapの行を削除entries→values→valueOf、ordinal→compareToの順へ@JvmStatic 非付与を言語制約による確定事項へ(0cfc0d5)
生成する
entries/valueOf/valueOfOrNullはEnumishCompanionの override であり、Kotlin は override メンバーへの
@JvmStaticを禁止している。付与可能にするには
EnumishCompanioninterface を捨てて共変で束ねる型を失うほかないため、SI.Enumish.getEntries()形の static アクセスは提供できない。「付与できるか未確認」を根拠とした将来拡張の位置づけを撤回し、各資料と Java 消費側テストのコメントから
v1 限定の表現を除いた。
確認
資料と Java テストのコメントのみの変更で、生成物・テストの挙動に影響はない。
noStaticAccessorsExistWithoutJvmStaticは恒久制約の回帰ゲートとしてそのまま機能する。🤖 Generated with Claude Code