#Cannot find value `book` in this scope, not found in this scope Error

13 messages · Page 1 of 1 (latest)

tropic granite
#

Hi, can someone explain me how can i use book variable outside of match scope

#

Cannot find value book in this scope, not found in this scope Error

graceful blaze
#

How would that work if there is no book in the _ branch?

fresh eagle
#

i think this will work (forgive my current mobile state)
playground

regal sentinel
graceful blaze
regal sentinel
#

Why not?

graceful blaze
#

it's an osstr, not str

tropic granite
#

i thank you all but i found a solution thanks to friend, he told me to do like that and it worked, i will be happy if you share your opinion on that so i can learn more.

#

the input file can be xls or xlsx so i needed a way to accept both, calamine created a wrapper that help when the file type is not known

graceful blaze
#

yeah just not doing that works too

tropic granite