The syntax has been removed from OCaml 5.0 altogether. The reason is that s.[i] <- c
was an alias for String.set
which was also removed. It was briefly discussed to make s.[i] <- c
an alias for Bytes.set
but it was concluded that this would be weird, since s.[i]
continues to be an alias for String.get
.
Cheers,
Nicolas