beamjs / erlv8

Erlang interface for V8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why Erlang 'ok' is translated to JS true?

gleber opened this issue · comments

Why Erlang 'ok' is translated to JS true? What are the reasons for this? I find it a bit inconsistent.

Good question. I don't remember anything about that...need to dig through the logs to see if there are any traces of why decision has been made.

6cd5d23 but no motivation was recorded. Is it causing some problems or just hurts your sense of beautiful?

The latter :) I am a proponent of as tight as possible specifications with as little ambiguousness as possible, hence in my opinion it is a suboptimal choice. I'll let you know if it creates real-life problems for me.

Gotcha. I would rather keep this because I don't know whether anybody relies on this behaviour or not (or at most, go through a deprecation procedure). Closing the issue for now.

I am pretty sure there was a use case for this. But after 2 years, I can't remember it. Sorry!