墨原 | Blair Noctis on Nostr: Zig 说的「…have operator overloading, so the + operator might call a ...
Zig 说的「…have operator overloading, so the + operator might call a function」感觉不是很有说服力,非基本类型本来就默认没有运算符,大家都知道其运算符是一种语法糖、背后是一个函数,况且函数也能内联。
Published at
2024-02-12 10:15:09Event JSON
{
"id": "4da50b53eccceaffd25a1380a0f986713d7506570cc01c0ac26094dedae4b12e",
"pubkey": "c5ab4a4378f4c979bdf0024d2dfd6b16013744df91298c0ac5ac3b7272750577",
"created_at": 1707732909,
"kind": 1,
"tags": [
[
"proxy",
"https://dabr.ca/objects/e37a748f-dffd-46bb-a604-40a7a0bf751b",
"activitypub"
]
],
"content": "Zig 说的「…have operator overloading, so the + operator might call a function」感觉不是很有说服力,非基本类型本来就默认没有运算符,大家都知道其运算符是一种语法糖、背后是一个函数,况且函数也能内联。",
"sig": "02027b7c07ef5f271c5693a0f1f44189bfc1b01eb507dbeb079fdd4a5480382622facbf2a9b3c130c28c2a70eb9441f19823ae5b85711888d24522bc24f26a16"
}