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

Lists with elements of a certain type #11

Closed
cooper opened this issue Sep 30, 2016 · 0 comments
Closed

Lists with elements of a certain type #11

cooper opened this issue Sep 30, 2016 · 0 comments

Comments

@cooper
Copy link
Owner

cooper commented Sep 30, 2016

I want to be able to do

$nums = List<Num>()

where

$nums.push("a string")

would fail.

If we had type-specific lists, we might be able to eliminate sets entirely. Which would be good because I don't like them anymore. Too much conversion between lists and sets.

To make this possible, we need the equivalent of class List <T?> in pure Perl. The Perl API does not offer a way to do this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant