Paul Evans on Nostr: A whole bunch of them are parser-special tricks - `print` in particular is weird ...
A whole bunch of them are parser-special tricks - `print` in particular is weird because of the indirect filehandle like that.
Much better in that case to write it in method form, though:
```
$file->print( $foo, $bar, ... );
```
makes it much more obvious to readers what is going on.
Published at
2024-07-01 10:23:16Event JSON
{
"id": "e99da6c3a982dc27fb50d3d47701356cfcc082c72202074ac5af9847beee37ed",
"pubkey": "bfc36b013e82efd032fc4f0ac558e17ac24a330c3b53a175d590b71d42268a3d",
"created_at": 1719829396,
"kind": 1,
"tags": [
[
"e",
"02f10185352d222ca69e8baf9e46068a1dcce21a34ab3a899fc2f9cfbc3e8a6e",
"",
"root"
],
[
"p",
"67328e1ce163c1f3258419e45d3e90ad906b9d6fa037a2381059db8f7de079e3"
],
[
"proxy",
"https://fosstodon.org/@leonerd/112710739332083057",
"web"
],
[
"proxy",
"https://fosstodon.org/users/leonerd/statuses/112710739332083057",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/leonerd/statuses/112710739332083057",
"pink.momostr"
],
[
"expiration",
"1722422319"
]
],
"content": "A whole bunch of them are parser-special tricks - `print` in particular is weird because of the indirect filehandle like that.\n\nMuch better in that case to write it in method form, though:\n\n```\n$file-\u003eprint( $foo, $bar, ... );\n```\n\nmakes it much more obvious to readers what is going on.",
"sig": "c76808a55638b8a47900c416124dc230fb7676453e1b1023de1577c4528b2e7b305f18618d8a7d2558fcf7ad25307e3eeabdb629e6108c0a64bc49d871fbb5d1"
}