About strings manipulation #203
Answered
by
sampsyo
carlosbazilio
asked this question in
Q&A
|
Dear, |
Answered by
sampsyo
Jun 1, 2022
Replies: 1 comment 4 replies
|
Hi! Good question! The language doesn't have any support for strings, so the answer is mostly "we don't"—people just confine themselves to focusing on numeric programs in a Bril context. If you really want to get creative, you could fake them with the memory extension, which would let you allocate an array of integers representing the characters! Part of the Bril philosophy is extensibility, so it could be fun to imagine designing a string extension (in the same vein as our current floating-point extension). |
4 replies
Answer selected by
carlosbazilio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Good question! The language doesn't have any support for strings, so the answer is mostly "we don't"—people just confine themselves to focusing on numeric programs in a Bril context. If you really want to get creative, you could fake them with the memory extension, which would let you allocate an array of integers representing the characters!
Part of the Bril philosophy is extensibility, so it could be fun to imagine designing a string extension (in the same vein as our current floating-point extension).