Skip to content

Commit 45034ef

Browse files
committed
Notes on gpython strings
1 parent 1827c0c commit 45034ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

notes.txt

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ The immutable types String, Int are passed by value. Tuple is an
8383
[]Object which is a reference type as is StringDict which is a
8484
map[string]Object. Note that Tuples can't be appended to.
8585

86+
Note that strings are kept as Go native utf-8 encoded strings. This
87+
makes for a small amount of awkwardness when indexing etc, but makes
88+
life much easier interfacing with Go.
89+
8690
List is a struct with a []Object in it so append can mutate the list.
8791

8892
All other types are pointers to structures.

0 commit comments

Comments
 (0)