You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have a function be dependent on the scope it is running in and return something based on that.
I have hoped I could cheat and use this: func scopedReturn() string => subscription().id ?? resourceGroup().id
but this immediately fails and it doesn't even cover the full range of scopes possible.
Is it possible using the current language or would something need to be developed for this to work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to have a function be dependent on the scope it is running in and return something based on that.
I have hoped I could cheat and use this:
func scopedReturn() string => subscription().id ?? resourceGroup().id
but this immediately fails and it doesn't even cover the full range of scopes possible.
Is it possible using the current language or would something need to be developed for this to work?
Beta Was this translation helpful? Give feedback.
All reactions