nim-by-example icon indicating copy to clipboard operation
nim-by-example copied to clipboard

Expand on strings

Open Varriount opened this issue 10 years ago • 2 comments

  • Mention value semantics
  • Go over slicing vs substr
  • Explain using unicode module
  • Mention internal representation (length prefixed with null terminator for literals)

Varriount avatar Dec 31 '14 10:12 Varriount

http://nim-by-example.github.io/strings/ also has issues: Proc Strings: raw strings, but the method name that prefixes the string is called [unfinished sentence] echo r" "" " should output ' " ' but the output shown is ' "' should show difference between: echo re "\b[a-z]++\b" echo re"\b[a-z]++\b"

timotheecour avatar Apr 15 '15 16:04 timotheecour

  • [x] Mention value semantics
  • [ ] Go over slicing vs substr
  • [ ] Explain using unicode module
  • [x] Mention internal representation (length prefixed with null terminator for literals)

@timotheecour Done, thank you for pointing those errors out, they're a little embarrassing.

flaviut avatar Apr 27 '15 21:04 flaviut