Giter VIP home page Giter VIP logo

plato's People

Contributors

example123 avatar ksrky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

plato's Issues

同型再帰による相互再帰型の実装

現在、再帰関数は自己再帰のみしか許していない。例えば、NatやListなど。
しかし、ASTなど相互再帰が必要になることもある。
https://gitlab.haskell.org/ghc/ghc/-/blob/master/compiler/GHC/Core/TyCo/Rep.hs を見る限り、GHCは再帰型を名前的再帰で扱っているようだが、Platoでは同型再帰として扱いたい。

参考にした/なりそうなリソース

名前の衝突チェック

基本的には後に定義された名前が、それ以前に定義された同名の関数または型を隠すが、それらの名前の関係が対等である場合、例えば
ラムダ式の複数抽象 \x y z ...
同じスコープで定義された関数や型
における名前の衝突は検出するようにする

モジュールシステムの定式化

現在のモジュールシステムはシステムと呼ぶに値しないような場当たり的実装になっているので、もっと形式化する。

HaskellよりMLのモジュールの方が形式的?

  • F-ing Modules
  • Advanced topics in types and programming languages, Chapter 8, p293

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.