Name: Anonymous 2012-08-27 7:14
Hi /prog/, I was wondering what's the closest programming language that can do:
You get the idea, I found types lacking in conventional programming languages.
type percentage int x where x >= 0 and x <= 100
percentage discount = 25
# the above will not compile if e.g, discount = 9001
print discountYou get the idea, I found types lacking in conventional programming languages.