Re-write locale macros as const functions #348
Labels
C-locale
Component: Locale identifiers, BCP47
good first issue
Good for newcomers
T-techdebt
Type: ICU4X code health and tech debt
Milestone
Proc macros are clunky and error-prone. Problems include:
icu_locid_macros
by itself; you need to include eithericu
oricu_locid
macro_rules!
andconst fn
, since the compiler needs to link and run them as a separate binaryproc-macro-crate
dependency in Cargo.tomlWe are close to being able to write the locale macros as const functions.
I previous said in #310 (comment):
I think we should consider this route as a more future-proof solution to this problem.
The text was updated successfully, but these errors were encountered: