#Day 00
22 messages · Page 1 of 1 (latest)
didn't knew you knew haskell
haskell's my fav lang
very well
i was gonna chicken out of perl
but i’m gonna do it
my template is basically readFile, split newlines
@fresh bolt question. i have seen that you have a prefix and solver py in your repo - presumably those are available within the solutions? now, i have this debug prefix that lets me pipe pretty prints into stderror for easy debugging
there just has to be a nicer solution than symlinking the prefix everywhere, right?
but from what i have gathered, py cannot import functions from a parent folder? am i just that pampered from js/ts?
actually I don't use it lol
I think I used it two years ago?
and I didn't import it
my utility script just joined the files together into an output file and ran it

are all python projects just a single folder?!
what the heck
you can import from parent folders I think
you just need to do something with the path or whatever
you can definitely import from subdirectories though
in js i'd just stuff the functions in /src/utils/.... and import it from src/2023/xx

doesn't matter for this one small fct, i just expected it to be less of an issue than it seems to be 
https://docs.python.org/3/reference/import.html#packages you‘d just define your files to be within a namespace and then import accordingly
