Hacker News new | past | comments | ask | show | jobs | submit login

Ada got this right. For example, you can do

  type Day_Of_Month is range 1 .. 31;



What happens when you try to pass an invalid number ? An exception is thrown ?


Yes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: