Bogdanp / racket-gui-easy

Declarative GUIs in Racket.
https://docs.racket-lang.org/gui-easy/index.html
134 stars 18 forks source link

`obs-set!` function #47

Closed kengruven closed 11 months ago

kengruven commented 11 months ago

Almost all of the observable "operators" are synonyms for named functions, but one common one is not: :=.

By convention with other observable functions, and with the rest of Racket, I think the obvious name for this would be obs-set!.

Maybe I'm just an old Lisp fart but I don't use the (a . f . b) syntax and I don't find it easy to mentally switch between prefix and infix notation, and I have a hard time remembering all the ><~=# characters, so a simple (obs-set! o v) would be really nice to have. Yeah, it's easy to write myself, or I could use (obs-update! o (λ (_) v)) ... I know this is a silly little request.