-
Notifications
You must be signed in to change notification settings - Fork 123
feat: [Rust] UserDict
からIndexMap
へinto
可能にする
#978
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
base: main
Are you sure you want to change the base?
feat: [Rust] UserDict
からIndexMap
へinto
可能にする
#978
Conversation
aed84d7
to
33bf8fa
Compare
33bf8fa
to
e35d98e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
うーーーーーーーーすみません!!!!
Rust APIの正式リリースは次バージョンで良い(リリースされていないものとして扱う)はず・・・・・・・!
なんとかマージしてあげたい気持ちはあるのですが、全部完成したあとで!!!!!!!!!!!!!!!!
あとどっちかというとUserDictはMap<words>
にしない方向に倒したほうが将来的に良い気もちょっとします。
とりあえず揃えておくのは賛成なので、0.16ができたらすぐマージして0.16.1に追加とかもできるかも。
あるいは0.16のプレビュー版を公開したあと、正式リリースまでに変更するとかでもありかも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ちょっと状況よくわからなくなったのでChatGPTにまとめてもらったので メモ 📝 )
これは #977 で変更された点ですが、UserDictをHashMap/IndexMapに変換可能にするのやめるのどうでしょう?
将来例えばUserDict自体の名前や著者やライセンスを書けるようにした場合、into()したときの値やto_dictの返り値が自明じゃなくなるので、関数を消すことになると思います。
まあそうなったときに破壊的変更すれば良いのですが、だったら最初(0.16)から.words
で取得できる形にするのがベストなのでは、と・・・!
これを機にUserDict::with_wordsというやつを封印してもいいかもしれません。
これはどちらにせよ賛成です!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ミス
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
内容
#977 の続き。一貫性のため。
関連 Issue
その他
これを機に
UserDict::with_words
というやつを封印してもいいかもしれません。(それについての議論込みで今PRを出した次第です)