You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the bounds check and the exception are largely unnecessary. Presumably one would be using these APIs if they had already performed the requisite checks. If one wanted an exception (rather than undefined behavior), then there is unsafeJust on the safe API.
The text was updated successfully, but these errors were encountered:
natefaubion
changed the title
Remove bounds check and exception from Data.Char.Unsafe foreign code?
Remove bounds check and exception from Data.String.Unsafe foreign code?
May 1, 2024
I think the bounds check and the exception are largely unnecessary. Presumably one would be using these APIs if they had already performed the requisite checks. If one wanted an exception (rather than undefined behavior), then there is
unsafeJust
on the safe API.The text was updated successfully, but these errors were encountered: