Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dragonwriter
· 9y ago · 0 comments
Perl 6, for instance, supports subset types such as:
subset Positive of Int where * > -1
OTOH, while some Perl 6 supports some static type checking, subsets of this kind seem to support only dynamic, not static, enforcement.
Comments
[–]
hellofunk
9y ago
Such subsets are readily available in all dynamic languages I've used. But the issue here is really about compile-time checking these things, and that's a different animal.