3 ms·
I regularly program in Go and Python. When I hover over time.sleep(delay) in my Python IDE the detailed pop up shows me that this sleeps for delay seconds and
by Ensorceled 5y ago
I regularly program in Go and Python.
When I hover over time.sleep(delay) in my Python IDE the detailed pop up shows me that this sleeps for delay seconds and that delay is an int.
When I hover over time.Sleep(wait) in my Go IDE, the popup shows me that time.Sleep takes a time.Duration.
Please get better tools and stay the heck away from both my languages and coding style guidelines.
- Lochleg 5y agoIn Golang, I've seen time.Sleep(2 * time.Second). That's pretty explicit, so, it seems someone carried the whole concept forward.