postmodern on Nostr: Do people have style preferences on using (?# ... ) comments in multi-line %r{...}x ...
Do people have style preferences on using (?# ... ) comments in multi-line %r{...}x regexes? Should comments be put above the line, or to the right of the line?
#ruby #regex #styleguide
Published at
2024-06-10 05:09:54Event JSON
{
"id": "26f7556b5ee294cd0c6d6af7b159eaeeb461758cf2fe63145468eb918632c8bb",
"pubkey": "ae2c5f0d5767d4845b235502cf6bd6fc541334009c28221ab3d3cb9d9895f437",
"created_at": 1717996194,
"kind": 1,
"tags": [
[
"t",
"regex"
],
[
"t",
"ruby"
],
[
"t",
"styleguide"
],
[
"proxy",
"https://ruby.social/users/postmodern/statuses/112590598617421957",
"activitypub"
]
],
"content": "Do people have style preferences on using (?# ... ) comments in multi-line %r{...}x regexes? Should comments be put above the line, or to the right of the line?\n#ruby #regex #styleguide",
"sig": "c400a409b4a1e433f019b11b95e052ab9bf65045a4e56201c031fa2070ea14ccf46f240923802046211c97ec30bd233b62f99b0d951d8700748099f333545727"
}