Comments (1)
A reasonable implementation would probably use patterns there, as we would want to allow also nested tuples, etc.
But patterns do not parse casts at the moment it seems (and they would be required for function arguments):
val f : int option -> int
(*@ r = f x
requires match x with
| Some (y:int) -> y >= 0
| None -> true *)
(* {gospel_expected|
[125] gospel: internal error, uncaught exception:
File "src/dterm.ml", line 332, characters 18-24: Assertion failed
|gospel_expected} *)
from gospel.
Related Issues (20)
- `Symbol not found` is sometimes misleading HOT 1
- Comments can break preprocessing
- Move the documentation about the attribute syntax to an appendix page HOT 1
- gospel pps still detaches some documentation attributes HOT 1
- Preprocessor uses a _lot_ of memory (and consequently of GC time) HOT 1
- OCaml compiler reports error on code generated by the preprocessor when the attribute is not at an acceptable location HOT 3
- The typechecker fails with an exception on functor applications HOT 1
- Missing error message for unsupported types HOT 5
- Add a directive in the beginning of the preprocessed file
- exists is a reserved keyword HOT 1
- Prepare release notes for 0.2.0 HOT 1
- First gospel/doc attribute is attached to the module if it is not preceded by a documentation one. HOT 1
- Add `Sequence.mapi`
- Type-check module signature in ml files HOT 2
- `with` is optional for type invariants HOT 1
- Revise exceptional specifications HOT 1
- Make the Gospel type-checker modular HOT 4
- Simplify attribute nesting
- Revise xposts internal representation HOT 1
- Revise Identifier implementation HOT 2
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 gospel.