feat: [Rust] UserDictからIndexMapへinto可能にする#978
Open
qryxip wants to merge 1 commit intoVOICEVOX:mainfrom
Open
Conversation
aed84d7 to
33bf8fa
Compare
33bf8fa to
e35d98e
Compare
Hiroshiba
reviewed
Feb 7, 2025
Member
There was a problem hiding this comment.
うーーーーーーーーすみません!!!!
Rust APIの正式リリースは次バージョンで良い(リリースされていないものとして扱う)はず・・・・・・・!
なんとかマージしてあげたい気持ちはあるのですが、全部完成したあとで!!!!!!!!!!!!!!!!
あとどっちかというとUserDictはMap<words>にしない方向に倒したほうが将来的に良い気もちょっとします。
とりあえず揃えておくのは賛成なので、0.16ができたらすぐマージして0.16.1に追加とかもできるかも。
あるいは0.16のプレビュー版を公開したあと、正式リリースまでに変更するとかでもありかも。
Hiroshiba
approved these changes
Mar 8, 2025
Member
There was a problem hiding this comment.
(ちょっと状況よくわからなくなったのでChatGPTにまとめてもらったので メモ 📝 )
これは #977 で変更された点ですが、UserDictをHashMap/IndexMapに変換可能にするのやめるのどうでしょう?
将来例えばUserDict自体の名前や著者やライセンスを書けるようにした場合、into()したときの値やto_dictの返り値が自明じゃなくなるので、関数を消すことになると思います。
まあそうなったときに破壊的変更すれば良いのですが、だったら最初(0.16)から.wordsで取得できる形にするのがベストなのでは、と・・・!
これを機にUserDict::with_wordsというやつを封印してもいいかもしれません。
これはどちらにせよ賛成です!
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.
内容
#977 の続き。一貫性のため。
関連 Issue
その他
これを機に
UserDict::with_wordsというやつを封印してもいいかもしれません。(それについての議論込みで今PRを出した次第です)