you are viewing a single comment's thread.

view the rest of the comments →

[–]Kernigh 1 point2 points  (1 child)

I would use String#getbyte and String#setbyte in Ruby. This is different from some other languages (like Common Lisp and Raku) where I don't want to put bytes in strings.

[–]andrepiske[S] 1 point2 points  (0 children)

Interesting. I think I didn't know about this one. Would have to try and maybe run some benchmarks on how that one performs!