Experimental browser for the Atmosphere
I think I understand the user-friendliness motivation behind partial matching in #RStats, but this is kinda messed up: x <- list(val_exists = FALSE) x$val <- x$val %||% 1 x$val #> [1] FALSE x <- list(val_exists = FALSE) x$val <- x[["val"]] %||% 1 x$val #> [1] 1
Feb 20, 2025, 12:34 PM
{ "uri": "at://did:plc:peeplnvlwcohp4jly3fpwj46/app.bsky.feed.post/3limcfhhepk2a", "cid": "bafyreifu4rzxnfpfe7yjlgurrqlv7aucyloe6i4cdsfjd4uboakdrcpvhe", "value": { "text": "I think I understand the user-friendliness motivation behind partial matching in #RStats, but this is kinda messed up:\n\nx <- list(val_exists = FALSE)\nx$val <- x$val %||% 1\nx$val\n#> [1] FALSE\n\nx <- list(val_exists = FALSE)\nx$val <- x[[\"val\"]] %||% 1\nx$val\n#> [1] 1", "$type": "app.bsky.feed.post", "langs": [ "en" ], "facets": [ { "index": { "byteEnd": 88, "byteStart": 81 }, "features": [ { "tag": "RStats", "$type": "app.bsky.richtext.facet#tag" } ] }, { "index": { "byteEnd": 180, "byteStart": 178 }, "features": [ { "tag": ">", "$type": "app.bsky.richtext.facet#tag" } ] }, { "index": { "byteEnd": 257, "byteStart": 255 }, "features": [ { "tag": ">", "$type": "app.bsky.richtext.facet#tag" } ] } ], "createdAt": "2025-02-20T12:34:03.535Z" } }