Vladimir

2%
Flag icon
In contrast, consider Go. Some objects in that language have features that are magic, in the sense that we cannot emulate them in our own user-defined types. For example, Go arrays, strings, and maps support the use brackets for item access, as in a[i]. But there’s no way to make the [] notation work with a new collection type that you define.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview