Comments (17)
If you do For, then also please do If
from farmer.
Yes, you can call custom operations after a for method. This is how things like query expressions work. I’ve discussed it a bit here. Or I’ve misunderstood the question!
from farmer.
@panesofglass I've enjoyed your CE workshop, found earlier by random googling. Thank you!
from farmer.
Doing this would also remove the need for add_resources
.
from farmer.
I don't know if this is possible though - calling custom operations within a For
method.
from farmer.
@panesofglass ok, good to know it's possible :-) Is there any example you can point me to? I don't even know what the signature of For should look like, let alone how to hook it into the CE and update the internal state.
from farmer.
Looks like you want an actual for loop, so you will need to do something like this, which requires additional members.
from farmer.
Iirc, supporting if just means you have to implement Delay, and possibly Combine. However, sometimes mixing standard members with custom operations requires you wrap each in its own expression.
from farmer.
from farmer.
Let me know if you want to pair on this or need help.
from farmer.
Yes and yes :-) Maybe wednesday?
from farmer.
Doh! Looks like I missed the window. How about Friday morning? I'll be online early.
from farmer.
Having chatted with @panesofglass, I don't think this will easily be possible. We could potentially yield within add_resources
but I'm not sure what the use case or benefit that would justify the cost of doing this.
from farmer.
I may still try this again. There should be some solution that should work here, though it may not be as lovely as you'd like.
from farmer.
I don't see what value does it bring - generating resources outside of the CE is already possible, unless you somehow benefit from CE context (for example let!
within if
/for
expression).
from farmer.
I think the main benefit might be that we wouldn't need to create single and collection versions of keywords e.g. add_secret
and add_secrets
.
from farmer.
Closing due to inactivity
from farmer.
Related Issues (20)
- Add option to set DAPR protocol for Container Apps HOT 1
- Event Hub as dependency is invalid HOT 4
- Get existing project running
- Seems as if remote vnet peering for virtual networks does not support the remote vnet being in a different resource group HOT 1
- Deploying a function app overwrites the WEBSITE_CONTENTSHARE value HOT 1
- SQL Server Builder - Create System Assigned Identity HOT 3
- CosmosDB Gremlin support HOT 3
- P0V3 app service type is missing
- Add SupportsHttpsTrafficOnly property support for storage accounts
- Tests failing in CICD HOT 2
- Service Bus builder needs validation improvements
- Alert dependable on Action Group HOT 2
- App Service does not support Linux App Insights automatic instrumentation
- Upgrade to Fantomas 6
- No builder support for adding subnet per IP of LoadBalancer backendAddressPool
- PostgreSQL dependency generates incorrect path
- Details about associating web app to vnet HOT 8
- Migrate to PostgreSQL Flexible Database
- Migrate Web App to use Log Analytics + App Insights
- Dependabot update for System.Text.Json forces a library update on Farmer consumers HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from farmer.