jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Change name of public API header?

Open akosthekiss opened this issue 10 years ago • 5 comments

The 1.0 release is approaching, but before it happens, we might reconsider the name of the public API header of the JerryScript library. Now, it is called jerry-api.h, which is somewhat unusual. For an ordinary library user, writing #include <jerry.h> might be more intuitive.

The time of the release is close and the change might need adaptation at various places of the project, but we should think about it since whatever we choose will most probably stay with us for good (or, for a long time, at least), as the name of the header is also part of the fixed API.

(Note: I'm not proposing to change the name of jerry-port.h. That's OK, IMHO, as it is important for and used by port developers only.)

akosthekiss avatar Aug 29 '16 19:08 akosthekiss

I don't mind to rename the header. I think the question is how risky this change is.

zherczeg avatar Aug 30 '16 04:08 zherczeg

I think it is not the right time to change the header name. Such change implies an RC3. It will delay the release if we rename it.

LaszloLango avatar Aug 30 '16 06:08 LaszloLango

In terms of release I think it's too late for an invasive change like that, we should only cherry-pick bug fixes for critical bugs which would block the release for one reason or another :)
In terms of header naming I think "jerryscript.h" would be even more appropriate since after all the project is called JerryScript not Jerry :)

tilmannOSG avatar Aug 30 '16 07:08 tilmannOSG

OK, let's wait with renamings then. (BTW: calling the resulting library libjerry-core.a is also a bit unnatural, libjerry.a or libjerryscript.a would seem more clean.)

Removing the issue from the 1.0 release milestone but leaving it open as a reminder that we might still consider something like this in the future. (Feel free to close it if you disagree, though.)

akosthekiss avatar Aug 30 '16 08:08 akosthekiss

Yes, I'd very much in favor of changing the header name to "jerryscript.h" and the library name to "libjerryscript.a" in the future :)
I think we should consider this for the next stable release after 1.0.

tilmannOSG avatar Aug 30 '16 08:08 tilmannOSG