Re:The Pike Programming Language
by fernly on Friday July 05, 2019 @10:22PM
(#20367344)
That's very typical of programs using a GUI platform. One way or another you have to kick off an event handler, whether it's TKinter or Qt or in this case, GTK. The event handler runs independent of your code and has to be told when to quit. I have to agree that
does seem to be less than intuitive and not a pretty thing to drop into a hello-world tutorial!
[ Parent
| on HN ]
Yes, registering events in a GUI is common, but for a "Hello world!" to shutdown? Never seen it needed for something that simple.
Re:The Pike Programming Language
by mpcjanssen on Saturday July 06, 2019 @01:42AM
(#20368141)
The cli hello world exits with the main return value.