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

Extend NSExpression with convenience methods #11016

Closed

Description

@1ec5

As a more structured alternative to #11015, we should extend NSExpression with convenience methods and initializers that represent common operations for which #10726 uses the custom function syntax:

NSExpression(forConstantValue: "Old")
     .mgl_appending(NSExpression(forConstantValue: " "))
     .mgl_appending(NSExpression(forConstantValue: "MacDonald"))

This is the most conventional approach, but it’s also very verbose – even moreso in Objective-C – and difficult to use in conjunction with format strings.

#5970 (comment) described essentially the same approach for the MGLStyleValue API that #10726 tore out.

/cc @akitchen @fabian-guerra @jmkiley

Activity

  1. added
    iOS
    macOS
    on Jan 24, 2018
  2. added this to the milestone on Jan 24, 2018
  3. 1ec5 commented on Apr 18, 2018

    @1ec5
    ContributorAuthor

    Fixed in #11278 on the release-boba branch for iOS map SDK v4.0.0 and macOS map SDK v0.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureiOSmacOSruntime styling

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions