allow for arbitrary key types by serializing keys aswell
まだ誰も着手していません。
評価
調査の方向性
まず、StructTypes が現在 Symbol、String、Int64 のキーをどのように処理しているかを、issue で言及されている BaseType のディスパッチと併せて確認します。シリアライズとデシリアライズにおいてサポートする任意キーの動作を定義し、Sub1/Sub2 Dict の例に対するテストカバレッジを追加します。
索引モデルが issue の本文から書いたものです。
説明
Right now I have some project where I build a very small database by using a Dict that maps singleton types to arbitrary types.
for example:
abstract type BaseType end
struct Sub1 <: BaseType end
struct Sub2 <: BaseType end
tmp = Dict(Sub1()=>"5", Sub2()=>10)
what I'm looking for right now is to have a proper way of serializing and deserializing that. Hooking into the abstract type machinery for BaseType didn't help at all. So I wonder, why don't we have the full StructTypes machinery enabled for all types that currently aren't supported as keys? To me that would be a perfectly valid generalization of the current approach given that the currently supported types, Symbol, String and Int64 are mapped per identity rn afaik.
- 主要言語
- Julia
- スター
- 86
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
JuliaData/StructTypes.jl のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
JuliaData/StructTypes.jl#104 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
JuliaData/StructTypes.jl#102 · コメント 1 件 ·
-
Register v1.11.0?オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
JuliaData/StructTypes.jl#98 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
JuliaData/StructTypes.jl#96 · コメント 1 件 ·
-
`StructTypes.x` is not defined対応中かも @sunoru が 1124 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
JuliaData/StructTypes.jl#92 · コメント 3 件 ·
JuliaData/StructTypes.jl の issue をすべて見る
似ている issue
-
tagbot-manual
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
tshort/StaticCompiler.jl#191 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
SciML/SciMLSensitivity.jl#1703 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
JuliaGPU/GPUCompiler.jl#1008 ·
メンテナーはふだん 1 日以内に返信
-
`biggs6` disagrees with CUTEst and is unbounded below対応中かも @timholy が 1 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Cannot set point coordinates with `Range`s (or arbitrary arrays) using `Makie.Resampler` in `heatmap`対応中かも @ffreyer が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信