Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SwiftyJSON/SwiftyJSON
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: SwiftyJSON/SwiftyJSON
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: xcode10.0
Choose a head ref
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Sep 30, 2018

  1. Dynamic Member Lookup introduced in Swift 4.2, now we can use dot, in…

    …stead of brackets (#986)
    
    * This proposal introduces a new @dynamicMemberLookup attribute. Types that use it provide "dot" syntax for arbitrary names which are resolved at runtime - in a completely type safe way. This provides syntactic sugar that allows the user to write
    
    **[introduce-user-defined-dynamic-member-lookup-types]**(https://github.com/apple/swift-evolution/blob/master/proposals/0195-dynamic-member-lookup.md#introduce-user-defined-dynamic-member-lookup-types)
    
    i've added a subscript function with dynamic member, so users can use dot instead of [],
         ```
    let name = json.name
         The same as: let name = json["name"]
    
         let phoneNumber = json.user.contactInfo.phoneNumber
         The same as: let name = json["user"]["contactInfo"]["phoneNumber"]
    
    ```
    
    * resolve houndci-bot conversation
    
    * update swift version to 4.2
    
    * change travis swift version to 4.2.0
    
    * set travis simulator ios version
    
    * check for ios 12
    
    * redu changes to travis.yml
    
    * new test file added, DynamicMemberLookupTests.swift
    
    * email address changed to some random email address
    
    * remove a test because it was duplicate
    
    * resolve hound comma
    valentinjahanmanesh authored and wongzigii committed Sep 30, 2018
    Configuration menu
    Copy the full SHA
    87d9828 View commit details
    Browse the repository at this point in the history
Loading