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

can we have nested namespaces please? #624

Closed
georgejecook opened this issue Jun 13, 2022 · 0 comments · Fixed by #708
Closed

can we have nested namespaces please? #624

georgejecook opened this issue Jun 13, 2022 · 0 comments · Fixed by #708

Comments

@georgejecook
Copy link
Contributor

georgejecook commented Jun 13, 2022

will be especially handy for enums..
so..


namespace nba.content
  enum LeagueIds
    nba = "00"
    summerLeague = "15"
  end enum

  enum GameUpdaterMode
    date = "date"
    game = "game"
  end enum
end namespace

namespace nba.content.tasks
  enum GamesUpdaterTaskCommand
    updateGamesOnDay = "updateGamesOnDay"
    updateGamesWithId = "updateGamesWithId"
  end enum
end namespace

would be nicer as


namespace nba.content
  enum LeagueIds
    nba = "00"
    summerLeague = "15"
  end enum

  enum GameUpdaterMode
    date = "date"
    game = "game"
  end enum
  
  namespace tasks
    enum GamesUpdaterTaskCommand
      updateGamesOnDay = "updateGamesOnDay"
      updateGamesWithId = "updateGamesWithId"
    end enum
  end namespace
end namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant