News for hackers. Stuff that matters.
Re:Verified Programming in F*: A Tutorial by octachron on Tuesday January 05, 2021 @09:09AM (#25645629)
The easiest way is probably to define a private subtype of string (type small_string = private string) with smart constructors that enforces the restriction at runtime. This often means that creating such values may fail, but if you have a value of this type you are assured that the constraint on the size holds.

There are no comments on this comment yet.