by nerdponx · 7y ago · 0 comments
Edit: In Python, equality, addition, even attribute setting can all be overridden by implementing certain "magic" methods on a class. Much of Python syntax is effectively syntactic sugar for calling these methods.
Go runes are codepoints.
I think Swift is interesting, a "character" in Swift is actually a grapheme cluster.
(You'd see objective-c benchmarks suffer because of this)
I just wrote my first Go program this past weekend, evidently I misunderstood the tutorials/docs I read.
Notice how big a problem the string/bytes split in Python 2 -> 3 migration was though - probably bigger than anything Java has had to do - which suggests this wouldn't necessarily have solved all problems as the author would like.