Skip to content

ZoneSpecification should be extendable #15109

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

Closed
nex3 opened this issue Nov 16, 2013 · 2 comments
Closed

ZoneSpecification should be extendable #15109

nex3 opened this issue Nov 16, 2013 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-as-intended Closed as the reported issue is expected behavior library-async type-enhancement A request for a change that isn't a bug

Comments

@nex3
Copy link
Member

nex3 commented Nov 16, 2013

It would be very useful to be able to extend ZoneSpecification and override its handlers. Calling [new ZoneSpecification] can be useful when relatively few functions are being declared, but for larger specifications it gets very unwieldy.

There are currently two major obstacles to this:

* ZoneSpecification's constructors are both factories.

@nex3
Copy link
Member Author

nex3 commented Nov 16, 2013

I've realized since filing this that it's important for the way zones currently work that some of the fields return null, which makes working around issue #15108 difficult. Feel free to either mark this as blocked on issue #15108, or just consider it a more general issue of "I'd like a nicer way of writing complex zone specifications".

@floitschG
Copy link
Contributor

As designed. The current API is restrictive but this allows us to have some assumptions on the values of the specification (like them being final).

The most annoying approach with the current approach is that it is difficult to have shared state. Either store it in the zone (in the values-map), or use closures that capture the same state.


Added AsDesigned label.

@nex3 nex3 added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-async closed-as-intended Closed as the reported issue is expected behavior labels Nov 18, 2013
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-as-intended Closed as the reported issue is expected behavior library-async type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants