News for hackers. Stuff that matters.
Re:A word for a value between 0 and 1 (inclusive) by Razengan on Friday September 04, 2020 @03:32PM (#24378159)
In Swift you can achieve this with Property Wrappers:

  @Clamping(0...14) var pH: Double = 7.0
https://nshipster.com/propertywrapper/#implementing-a-value-...

There are no comments on this comment yet.