You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C like languages allow the user to "manipulate" strings using '%' e.g "%s" for strings, "%d" for decimals and so on. Python also has the same feature using .format() and f-strings.
Use Case
andika() currently only supports arbitrary number of arguments but no way of organizing them as per user needs.
Adding this will enable the user to do like:
fanya i = 0
fanya jina = jaza("Unaitwa nani rafiki? ")
wakati (i <= 5) {
andika("Rafiki %s hii ni %d", jina, i)
i++
}
(the same case with f-strings)
Proposed Solution
The golang and or python implementation details can be of use:
Describe the feature
C like languages allow the user to "manipulate" strings using '%' e.g "%s" for strings, "%d" for decimals and so on. Python also has the same feature using
.format()
andf-strings
.Use Case
andika()
currently only supports arbitrary number of arguments but no way of organizing them as per user needs.Adding this will enable the user to do like:
(the same case with f-strings)
Proposed Solution
The golang and or python implementation details can be of use:
This are previous implementation details, not all the formatting will be copied over.
Other Information
No response
Acknowledgements
Version used
v0.5.1 (compiled from source with modifications from #80)
Environment details (OS name and version, etc.)
GO VERSION: go version go1.22.1 linux/amd64
Kernel: 6.8.1-arch1-1
Shell: Bash
OS: Arch Linux x86_64
The text was updated successfully, but these errors were encountered: