Comments (9)
The question mark should attach to the AO call, not the field value.
... Why? That's not the obvious-to-me parse of that expression. (Compare e.g. ! a().b
in JS.)
from ecmarkup.
I think I can fix this easily enough, but to be honest the extra binding seems like a good thing from a readability point of view, so I'm probably not going to prioritize it right away.
from ecmarkup.
Why are the parens needed at all in the first case? The question mark should attach to the AO call, not the field value.
from ecmarkup.
There are two examples in the spec where the operand of ?
is a field-extraction, both in InnerModuleEvaluation
:
return ? _module_.[[EvaluationError]]
return ? _requiredModule_.[[EvaluationError]]
In each case, the intended parse is
return ? (_foo_.[[EvaluationError]])
not
return (? _foo_).[[EvaluationError]]
from ecmarkup.
@bakkot because i don’t expect completion records to be stored in record fields, but i do expect them to be the result of an AO call. I don’t think JS has a comparison because completion records are so weird a concept.
from ecmarkup.
Completion records can be stored in record fields. They're just a value like any other.
from ecmarkup.
Sure, that's just not something we ever do, afaik, hence my expectation.
from ecmarkup.
I already gave an example where we do that: the [[EvaluationError]]
field of a Cyclic Module Record
is a throw completion or ~empty~
.
from ecmarkup.
Ah, fair enough. My expectation still holds, and using parens should ofc work, and i agree the separate alias is cleaner.
from ecmarkup.
Related Issues (20)
- "clause numbers should be strictly increasing" logic is incorrect
- id namespacing is undocumented and seems to be broken HOT 1
- Double-indented text does not produce a warning HOT 2
- Can structured headers' <ins>/<del> UI be improved? HOT 1
- Should spaces between AO names and arguments be allowed?
- consider linting against camelCase enum values HOT 1
- commit snapshot banner obscures bottom of references pane HOT 2
- Menu pane should be resizable
- add hidden `~` around enums and `_` around aliases for copy-paste HOT 1
- consider adding indentation spaces to hidden spec steps for copy-paste HOT 3
- dfns should have IDs
- `#` is weird in IBM Plex mono HOT 5
- warn for unnecessary emu-not-refs HOT 1
- Add TypeScript declaration file
- should permit iterating a List without declaring a binding HOT 6
- Allow rest argument list in abstract closures
- extract SVG from CSS as image file in /img
- integrate minifiers to save bandwidth and improve load times HOT 1
- include `meta property="og:description"` tags
- ExtendedPatternCharacter has emu-t outside of the emu-gmod
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 ecmarkup.