goby-lang / goby

Goby - Yet another programming language written in Go
MIT License
3.49k stars 171 forks source link

Feature request: debug printing by `pp` package #335

Closed hachi8833 closed 5 years ago

hachi8833 commented 7 years ago

https://github.com/k0kubun/pp

The pp package is excellent for colorized debug printing. I suggest adopting this as #dp method for Goby's debug printing.

I suppose implementing Class#dp will be very easy: just adding one wrapper function in Golang is sufficient, which would also let exploring Goby much more fun.

*Looks good for upcoming Goby-contributors' first play. Feel free to try this!

Thanks,

st0012 commented 6 years ago

This can be used in vm/inspection_methods.go, but I don't think this will help debugging Goby code

hachi8833 commented 5 years ago

Now I feel it looks the feature might be redundant so I close the issue.