Git Product home page Git Product logo

Comments (3)

gares avatar gares commented on June 16, 2024

Another alternative could be to always use & as the terminator I guess. It would still look more consistent to me.

from math-comp.

ggonthier avatar ggonthier commented on June 16, 2024

The design is that & is the default terminal separator, but other separators can be used when appropriate, so that the notation "reads" better, e.g., [\/ A, B | C] as "A, B or C".
It is important that the terminal separator be symbol that is a separator in the Coq grammar, i.e., that it cannot be construed as an infix operator. Nominally, all sequence items are parsed at level 200 (least binding), so false : l should be parsed as a type cast in your example. So either it is, and you've been saved by some odd error recovery of the stream parser, or you're overriding the cast syntax in manifest sequences, and something like [:: a && b : nat; true] will no longer parse.

from math-comp.

gares avatar gares commented on June 16, 2024

I agree on the aesthetic point, and you gave me a way to explain all this.

from math-comp.

Related Issues (20)

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.