Hacker News new | ask | show | jobs
by fmbb 12 days ago
Is that a unary minus denoting a negative number or a binary minus yielding a function with one hole?
2 comments

I'm guessing that HN has swallowed some underscores. I've written them as $0 in the below:

> abs($0 + 2 * 3 - 10)

> becomes

> abs($0 - 4)

Underscores are not swallowed by HN, the only (visible) character that can get stripped out will be *, you need to explicitly escape them in regular paragraphs (in code no escaping is needed) using ** or \*. If it's a lone * surrounded by white space or the only * next to other visible characters, then it will also survive. Otherwise you get italics.
For both of you: two spaces of indentation does code formatting, for example:

  abs(_ + 2 * 3 - 10)
https://news.ycombinator.com/formatdoc

Underscores aren't special in the markup here though, so I'm not sure that's what was intended.

Does it matter?
Well the parent had white space for holes so I was curious about the syntax.