Skip to content
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

Add default argument to Map's value(_) #1085

Merged

Conversation

emrcftci
Copy link
Contributor

@emrcftci emrcftci commented Mar 2, 2020

Description

  • Add default value as an argument to Map's value(_)

We can assign default value effortlessly with this new feature.

Motivation and Context

  • We will be use default argument for assign default value,

  • We will avoid using parentheses for assign default values

after this pull-request merge.

What kind of change does this PR introduce?

  • Bug fix (non-breaking change which fixes an issue)
  • File changes for improvement
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update
  • I have run tests

 - Update Swift version to 5

 - XCode automaticly created IDEWorkspaceChecks.plist after update it

 - Delete SWIFT_SWIFT3_OBJC_INFERENCE from project.pbxproj
 - Fix `hashValue` to `hasher(into: )` in MappableExtensionsTests.swift

 - Fix warnings related to `try?` declaration in ImmutableTests, MapContextTests, PerformanceTests
@emrcftci
Copy link
Contributor Author

Could you please check? @tristanhimmelman

@tristanhimmelman
Copy link
Owner

I'm ok with this PR, but you will need to rebase master and get the tests passing again in Travis

@emrcftci
Copy link
Contributor Author

I'm ok with this PR, but you will need to rebase master and get the tests passing again in Travis

I've rebased master into my branch but I accidentally take some commits from my other pull-request(#1081). So I've reverted these unwanted commits. Sorry for the mistake.

@tristanhimmelman
Copy link
Owner

No worries @emrcftci! Thanks for the contributions

@tristanhimmelman tristanhimmelman merged commit 72427ba into tristanhimmelman:master May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants