I took a partial, initial attempt at adding string formatting in scripts #586
Replies: 4 comments 26 replies
-
I'm really happy to see contributions to SixtyFPS, thank you. I think we need some discussion about the use case for the format feature. And what kind of format string we accept.
But is format string still a preferred feature to string interpolation? One usecase i am aware of is for the translations, which we want to support soon. And i have some notes in the issue #33 already. |
Beta Was this translation helpful? Give feedback.
-
Regarding the implementation, i'm not sure why you added the |
Beta Was this translation helpful? Give feedback.
-
I was going to ask about format. Keep in mind C++20 format approaches: Sorry throwing that many links at you. :-) |
Beta Was this translation helpful? Give feedback.
-
Regarding formatting, we really need something in SixtyFPS, but it has to be in combination with translation (i18n) and we can also have a function that do the formatting without the translation. So from the discussion I had with @tronical , we agree that
Remember there are different level to how translation work:
2. and 3. should be delegated to other crates, that can also be exposed to C++ and other languages. We would need a survey on how translation are done in other languages and what formatting they used for translation. I'm only familiar with the KDE I'm glad this is being discussed here so we can move forward on #33 too. |
Beta Was this translation helpful? Give feedback.
-
Here is my branch: https://github.com/jamesblacklock/sixtyfps/tree/str-format
This is not complete for a few reasons:
However, it seems to me this is a really important feature to have, so I'm curious what feedback the project maintainers have on this idea or how I should improve it.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions