About strings manipulation #203
-
Dear, |
Beta Was this translation helpful? Give feedback.
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). |
Beta Was this translation helpful? Give feedback.
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).