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

builtin 関数をもっと簡単に足せるようにする #212

Open
kmyk opened this issue Sep 3, 2021 · 0 comments
Open

builtin 関数をもっと簡単に足せるようにする #212

kmyk opened this issue Sep 3, 2021 · 0 comments

Comments

@kmyk
Copy link
Collaborator

kmyk commented Sep 3, 2021

Description / 説明

builtin 関数をもっと簡単に足せるようにしたい。
data Builtin = Plus | Minus | Mult | ... という enum にするのでなくて data Builtin = Builtin { name :: String, type :: Type, ... } な record で持った方がいい気がする。

Motivation / 動機

ひとつ足すのに n 箇所触らないといけなくてしんどい。
型検査が効くのでバグとかにはならないのだけど、ひたすら面倒なのでやりたくなさが強い。

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