Comments (3)
just clarifying that the desired behavior is just to use the parent ctor if none is provided (and there are no new fields that need to be initialized).
from wing.
I think TypeScript does something similar. 👍 For anyone implementing the feature, something like this should work:
class Foo extends cloud.Function {}
but this should still emit an error (because the new field needs to be initialized):
class Foo extends cloud.Function {
bar: str;
// error: missing constructor ("bar" needs to be initialized)
}
(side note: if Wing had abstract classes there might be more edge cases, but I guess we aren't dealing with that quite yet :-))
from wing.
I think TypeScript does something similar.
It does, but I also verified that there are OO languages that don't, Java for example. I'm still for this feature.
from wing.
Related Issues (20)
- Cannot read properties of undefined (reading 'emailIdentities')
- Merge to main only when the team's working hours HOT 1
- Cannot modify Wing Console display attributes of classes extending non-Wing constructs HOT 1
- Wing Platform overrides do not work on extended classes HOT 2
- Set secrets values in the Console HOT 2
- Tunnel links in Wing Console won't respect URL routes
- Refactor repo to turbo 2.0
- Improve Console map by reusing previous node positions in elk HOT 1
- Very confusing compiler diagnostics HOT 1
- Option to keep nodes expanded in node display HOT 1
- intrinsic function doesn't have struct expansion and signature completion
- wing run crash when using `@inflight(..)` on an un-existing file
- Clean our azure sdk tests account periodically HOT 1
- change the external retry in the sdk spec tests to the cli retry
- Add a section to the `wing-console` docs page explaining the capability of tunneling a URL
- Add JSII support for Wing libraries
- Application with a single resource should be expanded by default in the Console
- wingc code isn't re-compiled when running `pnpm wing compile/test` HOT 1
- Compiler panic when calling namespaced function within index expression
- Unable to call `.at()` with result of another function call
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 wing.