Coder Social home page Coder Social logo

Comments (8)

jmdyck avatar jmdyck commented on May 24, 2024

For es-spec-emu, I assumed that the distinction between:

  • "values" (*x* --> <emu-val>x</emu-val>) and
  • "spec-level constants" (~x~ --> <emu-const>x</emu-const>)

was this: a "value" denotes a value in an 'ECMAScript language type', whereas a "spec-level constant" denotes a value in a 'specification type' (see http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values).

So:

   *undefined* *null* *true* *false* *NaN* *TypeError* etc
vs
   ~empty~ ~throw~ ~failure~ ~lexicalBinding~ etc

However, there's one exception, *this*, that doesn't really fit in either category, but is marked as if it's a "value".

from ecmarkdown.

bterlson avatar bterlson commented on May 24, 2024

I like your distinction jmdyck. I'm going to codify that in the Emu readme.

from ecmarkdown.

bterlson avatar bterlson commented on May 24, 2024

See here: http://bterlson.github.io/ecmarkup/#editorial-conventions. Thoughts?

from ecmarkdown.

domenic avatar domenic commented on May 24, 2024

Are we going to change strings from code to values?

An example for source code would be good. The spec uses it for talking about e.g. Function.prototype and so on.

"Structuring your Ecmarkup Document" should lowercase document

Maybe put the Ecmarkdown column before the Ecmarkup column and name the Ecmarkup column "Ecmarkup Output"

from ecmarkdown.

bterlson avatar bterlson commented on May 24, 2024

I think strings and numbers should be treated identically. I think they are really values so I plan to use that convention going forward at least. Any concerns there?

Good call on the rest, will update it presently.

from ecmarkdown.

domenic avatar domenic commented on May 24, 2024

Not really, just will require some adjustment to existing specs and proposals. The line has always been fuzzy.

from ecmarkdown.

bterlson avatar bterlson commented on May 24, 2024

Updated. I leave it up to you whether you want to duplicate the same sort of info in this repo or close this issue :)

from ecmarkdown.

domenic avatar domenic commented on May 24, 2024

Close for now, if people keep getting it wrong we can ask them directly and see if this might help...

from ecmarkdown.

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.