4 ms·
hyperscript has some operator precedence, but within a given general precedence level you have to explicitly parenthesize if you use different operators: http
by recursivedoubts 6mo ago
hyperscript has some operator precedence, but within a given general precedence level you have to explicitly parenthesize if you use different operators:
https://github.com/bigskysoftware/_hyperscript/blob/06f9078aea3e0c53de763028644f1f93dfb7fed2/src/parsetree/expressions/expressions.js#L1118 https://github.com/bigskysoftware/_hyperscript/blob/06f9078a...
https://github.com/bigskysoftware/_hyperscript/blob/06f9078aea3e0c53de763028644f1f93dfb7fed2/src/parsetree/expressions/expressions.js#L822 https://github.com/bigskysoftware/_hyperscript/blob/06f9078a...
this eliminates most practical precendence questions
NB: one thing that may strike people as strange is that the parse methods are on the parse elements themselves, I like to localize everything about a parse element in one place