HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mortoray

no profile record

comments

mortoray
·5 ปีที่แล้ว·discuss
It's a bit disappointing that a relatively new language like Rust doesn't handle these correctly.

There's no value in a String type if it doesn't behave for text. One can simply use a "Array<char>" to convey proper semantic meaning.
mortoray
·5 ปีที่แล้ว·discuss
It's not about reversing, but about checking whether reverse iteration works. This is required to perform proper truncation (for limited length fields) as well as visual editing for a cursor to go through the text.

It can additionally be an indication as to whether regular expression matching works, though that is usually handled by a library, and not the core string types.

My contention was always that if a "string" does not reverse text, then it's no better than an "array<char>". The existence of a "string" type implies it should do more.
mortoray
·6 ปีที่แล้ว·discuss
It'll probably help in this case since I suspect it's computational overhead introducing the bottleneck, nothing architectural.

Alas, I might have to wait, as I tend to use Python 3.8 and it's not supported yet -- though mainly I use it for types, it might actually run in 3.7
mortoray
·6 ปีที่แล้ว·discuss
I intend on adding WebRTC as a channel for higher volume discarble messages, such as the cursor position of all players.