Andrew Tropin on Nostr: The best way to get all available stuff from textual port I found so far is: (define ...
The best way to get all available stuff from textual port I found so far is:
(define (read-all-chars-as-string port)
(let loop ((chars '()))
(if (char-ready? port)
(loop (cons (read-char port) chars))
(reverse-list->string chars))))
#scheme #guile #lisp
Published at
2023-08-29 05:34:57Event JSON
{
"id": "b4228735554e160a5d1086d28436de7d3693038744a51336b2743d3b2587b09f",
"pubkey": "6a3558cf15e6f724383ef20c385d65abf8af54d22fbd7f9c758fda61a08357ed",
"created_at": 1693287297,
"kind": 1,
"tags": [
[
"t",
"scheme"
],
[
"t",
"guile"
],
[
"t",
"lisp"
],
[
"proxy",
"https://fosstodon.org/users/abcdw/statuses/110971276297218461",
"activitypub"
]
],
"content": "The best way to get all available stuff from textual port I found so far is:\n(define (read-all-chars-as-string port)\n (let loop ((chars '()))\n (if (char-ready? port)\n (loop (cons (read-char port) chars))\n (reverse-list-\u003estring chars))))\n\n#scheme #guile #lisp",
"sig": "9374170b36b5ad5f8276be7d874221cea996bae9554c878fcab5e193b5b96a6ffbc72eddd9f69de5fb749997ec6d45fc405d8643532caec9f6b76711b19f0eed"
}