-
Notifications
You must be signed in to change notification settings - Fork 0
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
Rework AST #3
Rework AST #3
Conversation
) | ||
|
||
-- | Function name, must be lowercase | ||
newtype Fun = FunName {funName :: Text} |
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.
А почему не type Fun = Text
? Просто тут как будто избыточность какая-то возникает
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.
У нас вырисовываются три раздельных пространства имён: функции, переменные и конструкторы. Разделение на три точно разных типа выглядит очень даже оправданно в данном случае
Con Con [Expr] | ||
| -- | Lambda abstraction | ||
Lam Var Expr | ||
| -- | Function call |
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.
Как я понимаю, узел Fun просто висит слева в аппликации и хранит в себе имя функции. Всё. Вероятно так удобнее для дистилляции :)
@KubEF, поправь, пожалуйста, если я не прав
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.
Да, всё вроде так.
For some reason it's broken with --amend and now deprecated
No description provided.