This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Streamline custom function syntax for NSExpression #11015
Labels
feature
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
release blocker
Blocks the next final release
runtime styling
Milestone
As of the initial NSExpression implementation in #10726, we rely on the clunky custom function syntax to represent many of the style specification’s expression operators. For example, string concatenation is a common operation by requires all sorts of undiscoverable and error-prone punctuation:
As previously proposed in #8074 (comment), we should extend the private _NSPredicateUtilities class using the Objective-C runtime:
This would result in the most natural usage, but it’s also a bit Clever™. We’ll need to tiptoe around a bit to avoid directly using any private APIs, and we’ll need to include safeguards in case the underlying NSExpression implementation changes at any point.
/cc @akitchen @fabian-guerra @jmkiley
The text was updated successfully, but these errors were encountered: