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

Comments

Projects
None yet
4 participants
@AlexDaniel
Copy link
Member

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

@samcv

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Contributor

commented Jul 9, 2018

@samcv

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Contributor

commented Jul 10, 2018

@samcv

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Contributor

commented Jul 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.