jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
146 stars 11 forks source link

change println!() messages to fitting log message #151

Open naturallymitchell opened 5 years ago

naturallymitchell commented 5 years ago

Sharaf: do you use a special function for displaying messages? or simple println! will do?

mitchell: some messages only need to be displayed occasionally that's why I prefer to look at these as "log" messages that way, you set the "log level" and you'll only get the messages you want for example users never want anything more than info and critical errors and developers want debug info available while debugging and some messages are good for seeing the program run (trace) I don't like to just use a print statement especially seeing developers go back and forth commenting messages between commits, it's so cumbersome

This is part of my plan for self-documenting code, or some better term. Because if you're going to comment something, then make it run and display at a useful time.