Paul Evans on Nostr: I've tried thinking about it but in practice it'a hard to find syntax any nicer than ...
I've tried thinking about it but in practice it'a hard to find syntax any nicer than `sub`. It's actually quite nice already once you have signatures
```
do_thing_with sub($x, $y) { ... }
do_thing_with -> $x, $y { ... }
```
It's only very slightly longer to type but is already valid syntax, and pretty clear in meaning. I don't think there's much to be improved upon here.
Published at
2024-06-17 12:35:24Event JSON
{
"id": "0630d56bc9ef84f1d3b1bc3fafc5507d8b5ce92d28e29a1d80447a2383c7568f",
"pubkey": "bfc36b013e82efd032fc4f0ac558e17ac24a330c3b53a175d590b71d42268a3d",
"created_at": 1718627724,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@leonerd/112631986525085671",
"web"
],
[
"p",
"86606eafcd0acb6d075b850f07393333bee7c481e4940ee97c2808a289e609b0"
],
[
"e",
"4706e5cf71e47fb0c5f1a57064083135bca3f97dd332181123b4ea4c29a43a78",
"",
"root"
],
[
"proxy",
"https://fosstodon.org/users/leonerd/statuses/112631986525085671",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/leonerd/statuses/112631986525085671",
"pink.momostr"
]
],
"content": "I've tried thinking about it but in practice it'a hard to find syntax any nicer than `sub`. It's actually quite nice already once you have signatures\n\n```\ndo_thing_with sub($x, $y) { ... }\ndo_thing_with -\u003e $x, $y { ... }\n```\n\nIt's only very slightly longer to type but is already valid syntax, and pretty clear in meaning. I don't think there's much to be improved upon here.",
"sig": "7086a2bce061ecd0593488132613a7f2d9e53202475f3a200ad97bb5d5eb12ab392d044188c690655dbd0b705921bc5aea70f44ee963fa8654773b7c70566dec"
}