Skip to content
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

std.sumtypeの活用法 #123

Open
4 tasks
lempiji opened this issue Jun 12, 2021 · 0 comments
Open
4 tasks

std.sumtypeの活用法 #123

lempiji opened this issue Jun 12, 2021 · 0 comments

Comments

@lempiji
Copy link
Member

lempiji commented Jun 12, 2021

標準ライブラリに入ったので、Cookbookにあっても良いかなと思いました。
参考:https://qiita.com/lempiji/items/80a1e83cb661f573856b

まずは以下のあたりから

  • 宣言する方法
  • 複数の型を受け付けるmatchのハンドラーの書き方
  • tryMatchの使い方
  • 定義時の型の一覧の取り方

あとはmsgpack-dとかasdfとの連携とか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant