Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builtins: add Time namespace #1231

Closed
folex opened this issue Nov 25, 2021 · 0 comments
Closed

Builtins: add Time namespace #1231

folex opened this issue Nov 25, 2021 · 0 comments
Labels

Comments

@folex
Copy link
Member

folex commented Nov 25, 2021

Time-related functions need their own namespace. Currently, they use Peer namespace. That's sub-optimal: Peer aspect should be about peering and networking. Op isn't suitable as well: it's for pure functions.

So I suggest to have the following Time namespace:

service Time("time"):
  timestamp_sec
  timestamp_ms
  sleep

timeout is renamed to sleep: it's more to the point. timeout is a misleading name.

And mark corresponding functions in Peer as deprecated.

@folex folex added the recent label May 25, 2022
@meph meph closed this as completed Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants