Piotr KrzemiĆski
09/04/2021, 5:45 AMprintln("Hello world!")
work đ now there's some issue with property initialization, output
is not defined. In JS version the initializer function is executed at the very end. Maybe we should get back to lazily initiated properties, so I'll try to rebase my still-as-draft PR from a month ago and see if it helps. @SerVB I remember some TODO from your recent PRs that could address this. Is it in scope that you worked on yesterday and didn't send to review yet?Piotr KrzemiĆski
09/04/2021, 6:39 AMSerVB
09/04/2021, 10:02 AMoutput
field. From what I see now, it's still not working since this field is always None. Maybe it's that TODO that skips initial values, maybe something else.
I also see that those output classes contain some super calls that I'm going to fix.
Everything else seems not in the scope of my PR.
Well, if you ask me, I would say to support output we should learn how to mess up with stdlib. And then just remove this output field and classes for browser and nodejs, and make println call python's print. And regarding plain print, we could do it intrinsic for now just to convert its call to python's print(args, end="").
Something like that, sounds extremely cool and totally separated from my near tasksSerVB
09/04/2021, 10:56 AMPiotr KrzemiĆski
09/04/2021, 6:30 PMprintln
because it should be simple and would be useful in many other examples that we can prepare in the future. Equally tempting for me are collection functions like map
or filter
. Since the changes that you are working on may influence these, let me work on e. g. covering some missing translations first :)Piotr KrzemiĆski
09/05/2021, 6:41 AMPiotr KrzemiĆski
09/06/2021, 6:00 PMSerVB
09/06/2021, 6:54 PMSince the changes that you are working on may influence theseWell, if you start extracting our own stdlib-py instead of our current stdlib-js, it shouldn't collide with anything. Wdyt?
Piotr KrzemiĆski
09/06/2021, 8:05 PM