Comments (6)
from interface-types.
Yup, me too; I think this is the role of the type system in validating binding expressions.
from interface-types.
Oh sorry I should have clarified that my intention here wasn't necessarily to add more typechecking but moreso not rely on typechecking for this sort of validation, but rather the staitc structure. I don't think it's possible to typecheck where get
or field
is a top-level expression, nor can any of the other in-expr above show up as an input to another in-expr, so I was curious to just reflect this in the static structure of the section as opposed to relying on typechecking to figure it out.
from interface-types.
from interface-types.
I am also in favor of pushing static constraints from the (so far, unspecified) validation algorithm, to the grammar itself, when possible. It means that you we can do less validation work after parsing, since if something parsed and the grammar enforces a certain property, then we know that the relevant property is upheld without doing another validation pass.
This is obviously not possible for every property, but in the case of the straw proposal in the OP, it is possible and makes sense to me.
from interface-types.
Closing as out-of-date: the proposal has evolved and no longer involves binding expressions as described here. A validation algorithm still needs to be specified, see #29
from interface-types.
Related Issues (20)
- validateUtf8 typo in Explainer example HOT 1
- IT Mini-MVP? HOT 9
- Interface Types for self defined DataTypes HOT 1
- Define a "flags" interface type? HOT 6
- Interface type abbreviation for time? HOT 8
- Guaranteeing additional soundness properties HOT 11
- Unclear how adapting imports and acyclic instantiation works HOT 12
- Phase 2 estimate HOT 5
- Why is ByteString a string? HOT 3
- citability HOT 10
- NaN canonicalization HOT 39
- Why should strings be lists of Unicode Scalar Values? HOT 164
- Support UTF-16 as an additional encoding HOT 9
- Motivation for banning intertype recursion is not 100% clear HOT 12
- How possible is it to have two string types? HOT 14
- interface types versioning HOT 1
- Does flags enum type as be used typename or member name? HOT 1
- Where should `canonical_abi_*` be? HOT 4
- Backwards compatible additions to variants HOT 8
- Fixed-length lists 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 interface-types.