Bogdanp / racket-gui-easy

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

Documentation for case-view condition doesn't match implementation #29

Closed cloudrac3r closed 1 year ago

cloudrac3r commented 1 year ago

case-view documentation says that it uses equal? to compare the observable against the lit, but the implementation uses memv which is the eqv? condition. This makes it impossible to switch on strings because they can't be compared by eqv?.

Suggested solution: Change case-view's implementation to use member as the test.

Relevant code: private/view/if.rkt line 137.

As always, thank you for your amazing work!

Bogdanp commented 1 year ago

Thanks!