improve Unsafe#27
Conversation
There was a problem hiding this comment.
You have a superfluous full stop (.) at the end of this sentence.
|
I see what you mean now, I thought you were talking about using |
Sounds like a good idea to me. |
|
Exactly, I was going to suggest that but first I went looking for such occurences. |
|
eg It should throw an exception and the documentation should say so. It will be somewhat slower though. |
|
I sort of see how unpredictable failure can be a good deterrent from using unsafe functions though. |
|
|
|
We should also think about the interaction with |
|
Good to merge though? |
|
👍 thanks! |
charas discussed in Char constructor is unsafe #24, but stricter, sochar "c"can be eg. safely replaced with character literals (eventually), since it only accepts strings of length 1