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

[FEATURE] - Add Bytes Type #594

Open
1 task done
briandowns opened this issue Jan 27, 2023 · 1 comment
Open
1 task done

[FEATURE] - Add Bytes Type #594

briandowns opened this issue Jan 27, 2023 · 1 comment
Labels
feature request Discussion about a new feature

Comments

@briandowns
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

In regards to #567 , a new Bytes type will be added. More details to follow.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

@briandowns briandowns added the feature request Discussion about a new feature label Jan 27, 2023
@briandowns
Copy link
Contributor Author

As mentioned in the roadmap discussion here , we want the bytes type to be part of the language itself. Some thoughts around that.

E.g.

const b1 = b"some data";

I was also thinking, inspired by Go, to make a distinction between double quotes and single quotes. The former being used exclusively for strings and the latter for for single bytes.

E.g.

const s1 = "some string";
const b1 = 't';
const b2 = '\n';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Discussion about a new feature
Projects
None yet
Development

No branches or pull requests

1 participant