Question about SRFI-29 and changes to format #184
jpellegrini
started this conversation in
General
Replies: 2 comments
-
Hi @egallesio . Never mind, I realized it wouldn't be good to change the C format code. I'll make the PR (but there is a glitch - see there) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @jpellegrini , Good idea to use Github discussions for ... "discussing". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have SRFI-29 implemented, except for one tiny bit: it requires a change to
format
.What the SRFI wants is this: the code
~N@*
refers to theN
-th argument after the format string. This is so messages in different languages can be formatted according to different orderings:I see two ways of doing this:
internal_format
function in STklosAnd
srfi-29:format
would translate the format string, removing all the~N@*
and duplicating the format arguments where needed. Not trivial, since each time we deal with one of these new special format directive, we need to know all the other format directives that were behind it (so a simple regexp substitution won't work, it's somewhat trickier than that).What do you think?
Beta Was this translation helpful? Give feedback.
All reactions