Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upWhy is Realm always capitalized? #252
Comments
domenic
added
the
editorial change
label
Dec 15, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
anba
Dec 15, 2015
Contributor
If "Realm" is used to refer to the schema of the Realm record type, it needs to be capitalized. Similar to other named schemata like PropertyDescriptor, Completion, Reference etc.
|
If "Realm" is used to refer to the schema of the Realm record type, it needs to be capitalized. Similar to other named schemata like PropertyDescriptor, Completion, Reference etc. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Agreed. But it almost never is. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Hmm, I think it always is? When is it not? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
domenic
Dec 15, 2015
Member
Before it is evaluated, all ECMAScript code must be associated with a Realm.
well-known symbols values are shared by all Code Realms
Well-known intrinsics are built-in objects that are explicitly referenced by the algorithms of this specification and which usually have Realm specific identities.
A few others I think...
A few others I think... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bterlson
Dec 15, 2015
Member
These seem like proper Realm usage (ECMAScript code must be associated with a Realm[ record]). Code Realm and Realm seem interchangeable so I'd probably say "shared by all Realms" instead, though :-P
|
These seem like proper Realm usage (ECMAScript code must be associated with a Realm[ record]). Code Realm and Realm seem interchangeable so I'd probably say "shared by all Realms" instead, though :-P |
bterlson
added
the
question
label
Dec 15, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
domenic
Dec 15, 2015
Member
I guess you could interpret things that way; seems like a stretch to me, but happy to close.
|
I guess you could interpret things that way; seems like a stretch to me, but happy to close. |
domenic
closed this
Dec 15, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
allenwb
Dec 15, 2015
Member
"Realm" was the original name used for the concept but the original title of subclause 8.2 was "Code Realms" . In that context "code" was just a clarifying adjective. In practice we ended up using the terms "Realm", "realm", and "Code Realm" interchangeably to refer to the abstraction. Realm Record refers to a specific data structure.
I wsuggest that we just use "Realm" (with the cap) to refer to the abstraction. (hence "a Realm" would be an instance of the abstraction) and "Realm Record" when referring to the data structure.
|
"Realm" was the original name used for the concept but the original title of subclause 8.2 was "Code Realms" . In that context "code" was just a clarifying adjective. In practice we ended up using the terms "Realm", "realm", and "Code Realm" interchangeably to refer to the abstraction. Realm Record refers to a specific data structure. I wsuggest that we just use "Realm" (with the cap) to refer to the abstraction. (hence "a Realm" would be an instance of the abstraction) and "Realm Record" when referring to the data structure. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
domenic
Dec 16, 2015
Member
Bikeshed: we should use lowercase "realm" for the concept, so that it is not confused with the "Realm" record type, and so as to match other concepts like "execution context". I agree with removing "code" prefix and with trying to explicitly suffix "Record" where appropriate.
|
Bikeshed: we should use lowercase "realm" for the concept, so that it is not confused with the "Realm" record type, and so as to match other concepts like "execution context". I agree with removing "code" prefix and with trying to explicitly suffix "Record" where appropriate. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@domenic I'd take such a PR, I guess. |
domenic commentedDec 15, 2015
It seems weird. It's not a proper noun.