Dania
MModular
•Created by Dania on 12/25/2023 in #questions
Why doesn't __bool__ allow explicit conversion?
Thanks! That's what it was. Works as expected(provided explicit declaration) with already implemented Stringable trait and corresponding __str__
5 replies
MModular
•Created by Dania on 12/25/2023 in #questions
Why doesn't __bool__ allow explicit conversion?
It throws "use of unknown declaration 'bool'" error. I guess there is no lowercase bool() in mojo yet
5 replies