Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

50% Positive

Analyzed from 92 words in the discussion.

Trending Topics

#parse#precedence#operators#https#github#com#bigskysoftware#blob#programming#language

Discussion (4 Comments)Read Original on HackerNews

recursivedoubts•about 2 hours 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/06f9078a...

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

bitwize•about 4 hours ago
Not if it's s-expression-based! (laughs in smug lisp weenie)
aleph_minus_one•about 3 hours ago
Or, if the programming language uses infix binary operators:

Not if the programming language has evaluation order from left to right, e.g.

2+3*4

is evaluated as

(2+3)*4.

For example J uses this kind of evaluation.

lmz•about 2 hours ago
Smalltalk also.