DEV Community

Discussion on: Are you using Void correctly?

Collapse
 
somedood profile image
Basti Ortiz • Edited

By "entry points to an app", am I correct to assume that these include event listeners?

Also, just a tiny nitpick: doesn't the main function call ideally return an integer denoting whether or not the program was successful?

Thread Thread
 
chris_bertrand profile image
Chris Bertrand

Yes that would be right! The main function call can be either, and it's down to the user to decide which to use. I would recommend it returning an int, but then I think you would have guessed that already 😊