Hacker News new | ask | show | jobs
by shikoba 1437 days ago
The answer to a question to be precise.
1 comments

> The answer to a question to be precise.

No. The expression before evaluation (i.e. as it's written) is a question/query/ask, after a successful evaluation you get a value - an answer. In case when the evaluation failed, you get either a compilation/parsing error, runtime error/exception, crash, infinite loop/no return, or undefined behavior.

--

- Commands and Queries (as in CQS[1] and CQRS[2])

- Wishes and Asks (it's a wish b/c unlike command it can be rejected, and for the same reason it's an ask and not a query - i.e. "you may ask, but it doesn't mean I'll answer").

- Truth or dare?[3] (Dares and Truth-es ;)

--

[1] https://en.wikipedia.org/wiki/Command%E2%80%93query_separati...

[2] https://martinfowler.com/bliki/CQRS.html

[3] https://en.wikipedia.org/wiki/Truth_or_dare%3F