codex-storage / questionable

Elegant optional types for Nim
Other
116 stars 5 forks source link

Indexing of strings and sequences should not catch Defect #43

Closed markspanbroek closed 1 year ago

markspanbroek commented 1 year ago

Fixes issue as indicated by @arnetheduck in https://github.com/codex-storage/questionable/pull/42#discussion_r1283134645

Replaces the attempt to catch a Defect with a length pre-check.