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

Ability to ensure support for a unicode version #2031

Open
AlexDaniel opened this issue Jul 5, 2018 · 6 comments
Open

Ability to ensure support for a unicode version #2031

AlexDaniel opened this issue Jul 5, 2018 · 6 comments
Labels
path to stability Ensuring that changes in the compiler don't break user code RFC Request For Comments Unicode Related to unicode support

Comments

@AlexDaniel
Copy link
Contributor

AlexDaniel commented Jul 5, 2018

Wouldn't it be right to have something like this?

use Unicode :ver(v42..*);

The reason is that unicode support is rolling without any connection to, for example, language versions. So under use v6.c or use v6.d you can't know which unicode version is supported and your code can behave differently on different compiler versions/compilers (if you rely on new unicode features). I think that all perl 6 language versions also guarantee a minimum unicode version that must be supported, but that doesn't help that much unless we release perl 6 faster than new unicode versions are released.

I understand that supporting more than one unicode version at the same time (depending on which use Unicode … is used) is probably too difficult and is likely an overkill anyway, but maybe we need to provide a way to ensure that at least version X is supported by the compiler?

ping @samcv

@AlexDaniel AlexDaniel added RFC Request For Comments path to stability Ensuring that changes in the compiler don't break user code labels Jul 5, 2018
@samcv
Copy link
Member

samcv commented Jul 9, 2018

I agree there should be some way to guarentee the Unicode version. I'm not sure what the syntax should be though. What do other people think?

@lizmat
Copy link
Contributor

lizmat commented Jul 9, 2018 via email

@samcv
Copy link
Member

samcv commented Jul 10, 2018

@lizmat no we don't have that feature yet. Would we want to add that onto some pre-existing op or does it need a new one?

@lizmat
Copy link
Contributor

lizmat commented Jul 10, 2018 via email

@samcv
Copy link
Member

samcv commented Jul 10, 2018

No, I don't intend to keep different versions, but there may be a VM info op? Though maybe we want a separate unicode version op? @jnthn what are you thoughts on this?

@lizmat
Copy link
Contributor

lizmat commented Jul 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
path to stability Ensuring that changes in the compiler don't break user code RFC Request For Comments Unicode Related to unicode support
Projects
None yet
Development

No branches or pull requests

4 participants