Go Generics Syntax Confusion
can you please explain this go syntax to me? type ImmutableTreeList<ElementT> struct { I thought go doesn't have generics. It doesn't. That's just a "template" file, which I use search and replace in order to generate the three monomorphized go files. If you look closely, those aren't angle brackets, they're characters from the Canadian Aboriginal Syllabics block, which are allowed in Go identifiers. From Go's perspective, that's just one long identifier.
A programming forum screenshot shows a user asking about apparent generic syntax in Go code. The reply explains that the symbols are actually Canadian Aboriginal Syllabics characters inside one long identifier, making the joke a clever technical workaround and a reaction to confusing code.
programming code / программный кодcomputer interface screenshot / скриншот интерфейса компьютераtext post / текстовый постcomment reply / ответ на комментарийGo programming language / язык программирования Gocode editor syntax / синтаксис редактора кодаangle-bracket-like symbols / символы, похожие на угловые скобкиblack text / чёрный текстwhite background / белый фон
- @profunctor_io / 3089 2019-09-23
- @ithueti / 1345 2019-09-23
- @right_wing_dev_squads / 2734 2021-10-17
- @gentoomemes / 8522 2024-01-06
- @dev_meme / 5835 2024-01-20
- @right_wing_dev_squads / 8787 2024-02-22
- @right_wing_dev_squads / 13351 2025-11-21
- Type
- image
- Size
- 800×641 · 84.1 KiB
- Mood
- clever absurd
- Language
- en
- Added