Generalized falling back show + mimetype

オープン
#289 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia
領域
tooling

調査の方向性

src/mimesave.jl と既存の MimeWriter 実装から始めます。レジストリがファイルタイプをどのように表現しているかを確認し、MIME タイプと汎用的な showable チェックをそこにどのように組み込めるかを判断します。各 MIME ケースを個別に列挙する必要なく、フォールバック動作が一般化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Right now we handle the fact that things can define show(::IO, mimetype, ::MyType), vis the MimeWriter
which we list just like any other library. Generally last.

I suggest that we should instead include in the registry a list of mime-types for each filetype.
and then we should have generic code that checks showable for each.
The code in the MimeWriter is basically all the same.
Since the full-full_fidelity IOContext should just be ignored by anything that doesn't know what to do with it;
and listing multiple would achieve the same as else-if that html has.

There is also an argument that these should be at the top of the priority list to try
This is because show is often defined by same library as defines the object.
As such it has the most informatiom about what it wants to do.
Futhermor, it will not normally require loading a dependency.

主要言語
Julia
スター
228
フォーク
83
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

JuliaIO/FileIO.jl のほかの issue

JuliaIO/FileIO.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。