You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, there are valid javascript expressions that use observables keywords mutable and viewof as identifiers that the observable parser will reject. the goal would be to allow these expressions where possible.
here are some examples of these identifiers that could be defined in a local cell scope:
{constviewof=3;}
functionfoo(viewof){ ... }
and at the notebook scope where cells can be named mutable and viewof:
functionviewof(){ ... }
viewof=3
additionally, import semantics need to be worked out. what happens if a cell named viewof is imported from another notebook that defines it as a cell:
currently, there are valid javascript expressions that use observables keywords
mutable
andviewof
as identifiers that the observable parser will reject. the goal would be to allow these expressions where possible.here are some examples of these identifiers that could be defined in a local cell scope:
and at the notebook scope where cells can be named
mutable
andviewof
:additionally, import semantics need to be worked out. what happens if a cell named
viewof
is imported from another notebook that defines it as a cell:this change is likely to alter logic in parse.js, and the Hello, Observable Parser notebook can be used to aid in testing.
broadly this change would be a preamble to possibly adding a
builtin
keyword to provide a namespace for all the built-in identifiers likewidth
.The text was updated successfully, but these errors were encountered: