Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Many NSPredicate and NSExpression operators have no equivalent in style JSON #11786

Open
7 of 72 tasks
1ec5 opened this issue Apr 26, 2018 · 3 comments
Open
7 of 72 tasks
Labels
gl-ios iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling upstream Blocked by an issue in a dependency

Comments

@1ec5
Copy link
Contributor

1ec5 commented Apr 26, 2018

This issue tracks progress toward supporting the full range of NSPredicate and NSExpression functions and operators, based on where we are in iOS map SDK v4.0.0 and macOS map SDK v0.7.0. mapbox/mapbox-gl-js#6484 is a corresponding issue that tracks several style specification additions that would block this goal.

Some of these operators already have workarounds. It isn’t necessary to support all of these operators, since some may be a poor fit for manipulating a style. Developers are used to – if sometimes frustrated by – the fact that various Core Data and NSArray backends support different subsets of the NSPredicate and NSExpression vocabulary and grammar.

(Sources for this issue included Realm’s “NSPredicate Cheatsheet”.)

/ref mapbox/mapbox-gl-js#5892
/cc @fabian-guerra @anandthakker @ChrisLoer

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Apr 26, 2018
@1ec5 1ec5 changed the title Common NSPredicate and NSExpression operators have no equivalent in style JSON Many NSPredicate and NSExpression operators have no equivalent in style JSON Apr 27, 2018
@1ec5 1ec5 added the upstream Blocked by an issue in a dependency label Jun 21, 2018
@stale stale bot added the archived Archived because of inactivity label Jan 14, 2019
@stale
Copy link

stale bot commented Jan 15, 2019

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Jan 15, 2019
@fabian-guerra fabian-guerra reopened this Jan 15, 2019
@stale stale bot removed the archived Archived because of inactivity label Jan 15, 2019
@1ec5
Copy link
Contributor Author

1ec5 commented Jan 18, 2019

I added a note that block expressions are, ahem, blocked by core support as described in #7860. If there’s any way at all that we could support arbitrary executable code as part of style property evaluation, we should definitely consider it, because developers find it much more straightforward to use ordinary programming language affordances than to learn a declarative mini-language, be it NSExpression format strings or anything we’d implement in the style spec for Turing completeness.

@stale
Copy link

stale bot commented Jul 17, 2019

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
gl-ios iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling upstream Blocked by an issue in a dependency
Projects
None yet
Development

No branches or pull requests

4 participants