Skip to content

About strings manipulation #203

Answered by sampsyo
carlosbazilio asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@carlosbazilio
Comment options

@carlosbazilio
Comment options

@Pat-Lafon
Comment options

@sampsyo
Comment options

Answer selected by carlosbazilio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants