Open Bug 1280678 Opened 8 years ago Updated 8 years ago

Provide C++ API for L20n

Categories

(L20n :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: zbraniecki, Unassigned)

Details

(Whiteboard: [gecko-l20n])

User Story

We need something magical to make people be able to use L20n from C++ code.

//XXX: Axel to file that out
No description provided.
Blocks: gecko-l20n
User Story: (updated)
Mass change dependency tree for bug 1279002 into a whiteboard keyword.
No longer blocks: gecko-l20n
Whiteboard: [gecko-l20n]
Would a Rust implementation with a C compatible API work here?
I'd like to see great static-analysis support for the C++ API, and type-safety for params. I.e., I'd like it to be easy for a C++ caller to pass in an int, double, nsAString, nsACString, "foopy". I'm curious if that'd be possible in C. In Rust, I don't know either, haven't looked deeply. I'd not be surprised if the Rust API was a macro, for example. If we're marshalling from the API to the implementation, either rust or js are probably fine, and should be evaluated in their own right. Long story short, we should create the best API possible for C++, and not something that's just the most narrow shim to another programming language.
You need to log in before you can comment on or make changes to this bug.