10 ms·
Reminds me of this comment from Reddit https://old.reddit.com/r/rust/comments/5penft/parallelizing_enjarify_in_go_and_rust/dcsgk7n/ https://old.reddit.com/r/rus
by filipn 6y ago
Reminds me of this comment from Reddit https://old.reddit.com/r/rust/comments/5penft/parallelizing_enjarify_in_go_and_rust/dcsgk7n/ https://old.reddit.com/r/rust/comments/5penft/parallelizing_...
Go allows characters from the Canadian Aboriginal Syllabics for identifiers, so you can define structs or methods like this:
type ImmutableTreeListᐸElementTᐳ struct {
You can pretend that go has generics :)
- masklinn 6y agoYou're forgetting the important bit: > That's just a "template" file, which I use search and replace in order to generate the three monomorphized go files. They were using a separate codegen step (really just a sed run) to actually "do generics". In fact, that was the entire reason this thing was introduced[0], the structure originally used interface{} for its items. The "generic" part was then moved to a `go_` file from which monomorphisations on bool, ArrayT and ScalarT got generated. Also > Go allows characters from the Canadian Aboriginal Syllabics for identifiers I'd expect just about any language which supports unicode identifiers to allow this, as canadian aboriginal syllabics is a "normal" abugida, and its "textual" components are (properly) tagged as XID_Start and XID_Continue. [0] https://github.com/google/enjarify/commit/55e8e65e681b15f026625c38024a63adab8cd446 https://github.com/google/enjarify/commit/55e8e65e681b15f026...
- 0-_-0 6y agoIsn't that a syntax terror?