Prefix wasm objects and functions with *something*
(motivated by https://github.com/harfbuzz/harfbuzz/issues/4456)
The current no prefix (face_create) etc is really bad. I'm not sure what to prefix with. Just wasm_?
Do we expect this API to be implementable as is by non-HarfBuzz implementations? if no, I’d go with hb_wasm_ or wasm_hb_ since they are very HarfBuzz-specific.
@simoncozens expressed in another thread, that he's fine with just wasm_.
Do we expect this API to be implementable as is by non-HarfBuzz implementations?
That was my intention. But realistically I don't expect them to.
if no, I’d go with
hb_wasm_orwasm_hb_since they are very HarfBuzz-specific.
Maybe hb_wasm_ then. Fortunately it's just a macro and can be easily changed.
Maybe wasm_hb_ is less confusing.
Humm. It's not as simple as changing a macro. The type names also need to change, and the macros.
I wonder if we should use the hb_ prefix for the simple types like codepoint_t, position_t, mask_t, tag_t, direction_t, where the definition matches the regular API.
I wonder if we should use the
hb_prefix for the simple types likecodepoint_t,position_t,mask_t,tag_t,direction_t, where the definition matches the regular API.
I think it makes sense, yes.
How about hbw_?