Comments (3)
As it turns out, there are more problems than just printing:
- Forbidden bound variable names are also remembered forever.
- If a module raises an exception or runs an unhandled operation, then its effects (adding rules to nucleus, definitions of types, etc.) are forgotten, but not any changes it made to references.
We need to think about the top-level monad and the interaction between various effects.
from andromeda.
Following OCaml, if a module raises an exception, it should be undefined.
from andromeda.
The following top-level interaction is a bit worrisome:
# let secret = ref ML.None ;;
val secret :> ref (ML.option _α) = ref ML.None
# exception Die ;;
Exception Die is declared.
# module M = struct rule A type ;; secret := ML.Some A ;; raise Die ;; end ;;
Processing module M
Rule M.A is postulated.
- :> mlunit = ()
File "?", line 2, characters 57-65:
Runtime error: uncaught exception Die
# M.A ;;
File "?", line 2, characters 1-3:
Type error: unknown name M.A
# let (ML.Some ?illegal) = !secret ;;
val illegal :> _α = ⊢ M.A type
# illegal ;;
- :> _α = ⊢ M.A type
from andromeda.
Related Issues (20)
- Fail gracefully when an atom appears in a derived rule.
- Allow unicode in operators HOT 2
- Abstracting/annotating the result of a recursive call HOT 6
- Fixing typing annotations on recursive functions
- The type of abstraction HOT 1
- The dynamically-variadic nature of "congruence" HOT 2
- Matching against a neutral application HOT 4
- Boundary of an ill-typed equality? HOT 2
- Fix `context`
- Properly implement equality meta-variables, or at least hack them correctly HOT 2
- Fix `coerce`
- Require each module at most once
- Improve the `eq` module
- Allow patterns in `fun`
- Runtime exceptions are printed in wrong environment
- Printing of local contexts in argument position is reversed
- Failed assertion HOT 1
- Automatic principal arguments in eqchk
- dispatching on arguments that bind variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from andromeda.