Hello,
I think I’ve spotted a bug in the racket guide, here: 13 Classes and Objects
It’s about traits.
In the marked line get-color and get-price are reversed. Is this a bug?
Matteo
Hello,
I think I’ve spotted a bug in the racket guide, here: 13 Classes and Objects
It’s about traits.
In the marked line get-color and get-price are reversed. Is this a bug?
Matteo
99% sure it's a bug. (I never used traits.) The file is https://github.com/racket/racket/blob/master/pkgs/racket-doc/scribblings/guide/class.scrbl Do you want to send a PR? If you can't, some of us will fix it (assuming it's a bug).
I know some git, but I’m not good enough to send a PR.
Thanks for your help.
Matteo
Still 99% sure, so I'm waiting a confirmation.
The PR is in Fix docs for traits by gus-massa · Pull Request #4714 · racket/racket · GitHub
Merged in fix docs for traits · racket/racket@51a4117 · GitHub
The online docs will be updated when version 8.11 is released.
Thanks for the report!