Alex Michael Berry :ferris:🐈 on Nostr: I'm thinking of using [] for collection literals in Wander and then using sigils to ...
I'm thinking of using [] for collection literals in Wander and then using sigils to "modify" the type of collection. Something like
[a b c] - array or tuple
#[a b c] - set
![a b c] - bag
<[a b c] - ordered array
#<[a b c] - ordered set
!>[a b c] - reverse ordered bag
Published at
2023-11-12 22:03:11Event JSON
{
"id": "024a0e791f801aa4894748835823256691da732fa6bdbed255b19fe51c770e38",
"pubkey": "8db1263793b28ea32de141d44311e81a33cdba61a815fde1bed64b61b0fbeb45",
"created_at": 1699826591,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/almibe/statuses/111399835472743661",
"activitypub"
]
],
"content": "I'm thinking of using [] for collection literals in Wander and then using sigils to \"modify\" the type of collection. Something like\n\n[a b c] - array or tuple\n#[a b c] - set\n![a b c] - bag\n\u003c[a b c] - ordered array\n#\u003c[a b c] - ordered set\n!\u003e[a b c] - reverse ordered bag",
"sig": "0745b4680fd7467177e6d464dad7ced86bac0504e9578e58a29429a1e29dcd3a1754d35fbaed07fabcc5eec7b25dec5180856cd4b9b7edfb48f63d9208a1b2aa"
}