Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strings (phase I) #3218

Closed
ArielElp opened this issue May 22, 2023 · 1 comment
Closed

Strings (phase I) #3218

ArielElp opened this issue May 22, 2023 · 1 comment
Labels
roadmap a feature included in the public roadmap

Comments

@ArielElp
Copy link
Collaborator

ArielElp commented May 22, 2023

In the first phase, we will add byte arrays to the language.

Users will be able to initialize byte arrays via a syntax similar to let err = b"this is a long error string".

Byte arrays answer many of the standard blockchain use of strings, such as storing constant URLs in a contract. Additionally, asserts will now be able to pass byte arrays that encode an ASCII string rather than a short string (31 bytes) which is usually not enough to describe the error.

We will introduce a String type supporting standard string operations in the second phase. Under the hood, it will be implemented with byte arrays.

@ArielElp ArielElp converted this from a draft issue May 22, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in cairo-roadmap May 22, 2023
@ArielElp ArielElp moved this from ✅ Done to 📋 Backlog in cairo-roadmap May 22, 2023
@ArielElp ArielElp moved this from 📋 Backlog to 🏗 In progress in cairo-roadmap Jun 21, 2023
@ArielElp ArielElp added the roadmap a feature included in the public roadmap label Jun 22, 2023
@ArielElp ArielElp reopened this Jun 22, 2023
@ArielElp ArielElp changed the title Strings Strings (phase I) Aug 6, 2023
@orizi
Copy link
Collaborator

orizi commented Nov 23, 2023

Supported.

@orizi orizi closed this as completed Nov 23, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in cairo-roadmap Nov 23, 2023
@ArielElp ArielElp moved this from ✅ Done (Archive) to v2.4.0 in cairo-roadmap Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap a feature included in the public roadmap
Projects
Status: v2.4.0
Development

No branches or pull requests

2 participants