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

How does this get enforced for string content changed at runtime? Or does this apply for only to strings initialised in code.



You can enforce newtype on strings, or also use a dynamic predicate which checks at runtime.

https://ada-lang.io/docs/arm/AA-3/AA-3.2/#324--subtype-predi...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: