🌸 lily 🏳️⚧️ :flag_pansexual: :flag_ace: θΔ ⋐ & ∞ on Nostr: lily language idea: `{ }` are optional and only denote a block (like rust's `let x = ...
lily language idea: `{ }` are optional and only denote a block (like rust's `let x = { … };` syntax. however both of these are valid:
```
if x
do_something();
end
if x {
do_something();
}
```
because the latter is equivalent to a statement like this:
```
if x
do_something();
```
which doesn't need an end statement
Published at
2025-12-13 02:51:19 UTCEvent JSON
{
"id": "1ef3b0fef536ea0b2951d2e6794e8d30b63297f976f92f368d4b01d09e345dea",
"pubkey": "95d435057a4b56901ebc7d70b6ff4b91dfb912734ac0c0438e69b4be94c53364",
"created_at": 1765594279,
"kind": 1,
"tags": [
[
"proxy",
"https://possum.city/notes/ag79k6fvix2204cb",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://possum.city/notes/ag79k6fvix2204cb",
"pink.momostr"
],
[
"-"
]
],
"content": "lily language idea: `{ }` are optional and only denote a block (like rust's `let x = { … };` syntax. however both of these are valid:\n```\nif x\n do_something();\nend\n\nif x {\n do_something();\n}\n```\nbecause the latter is equivalent to a statement like this:\n```\nif x\n do_something();\n```\nwhich doesn't need an end statement",
"sig": "7a8f0151957a718a744e37050a90f6aae9f84faa749b3f584a110d3d0c2313721cbb86c7a78a7f3757f926fc03b81ea37b9af61836d5b9a13f581daf6f3fe064"
}