Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Swift keyword arguments research

This is a little project to find out how keyword arguments (or "labels") are used in Swift. I'd like to find out how many times the name of the keyword argument exactly matches the variable sent in, and maybe how often it SHOULD match but a short acronym has been used instead.

Current results:

apps

name matching non_matching partial one_char_prefix one_char total
Charts 1015 (20.53%) 3191 (64.54%) 576 (11.65%) 60 (1.21%) 102 (2.06%) 4944
DesignerNewsApp 58 (16.86%) 268 (77.91%) 18 (5.23%) 0 (0.00%) 0 (0.00%) 344
eidolon 186 (10.73%) 1394 (80.39%) 154 (8.88%) 0 (0.00%) 0 (0.00%) 1734
firefox-ios 1867 (13.44%) 9931 (71.51%) 1813 (13.06%) 39 (0.28%) 237 (1.71%) 13887
FlappySwift 2 (2.30%) 76 (87.36%) 7 (8.05%) 0 (0.00%) 2 (2.30%) 87
iina 57 (5.35%) 921 (86.48%) 56 (5.26%) 4 (0.38%) 27 (2.54%) 1065
TSWeChat 53 (5.27%) 817 (81.29%) 131 (13.03%) 1 (0.10%) 3 (0.30%) 1005
VPNOn 15 (3.43%) 336 (76.89%) 85 (19.45%) 0 (0.00%) 1 (0.23%) 437
wire-ios 464 (9.64%) 3879 (80.61%) 461 (9.58%) 4 (0.08%) 4 (0.08%) 4812
WordPress-iOS 946 (10.12%) 7368 (78.84%) 886 (9.48%) 16 (0.17%) 129 (1.38%) 9345
Yep 1747 (17.28%) 7097 (70.20%) 1249 (12.36%) 0 (0.00%) 16 (0.16%) 10109

libs

name matching non_matching partial one_char_prefix one_char total
Alamofire 515 (18.13%) 1932 (68.00%) 355 (12.50%) 0 (0.00%) 39 (1.37%) 2841
Carthage 187 (13.82%) 1045 (77.24%) 117 (8.65%) 2 (0.15%) 2 (0.15%) 1353
Eureka 277 (14.79%) 1214 (64.82%) 344 (18.37%) 0 (0.00%) 38 (2.03%) 1873
Perfect 25 (8.62%) 252 (86.90%) 10 (3.45%) 0 (0.00%) 3 (1.03%) 290
swift 2449 (4.12%) 47135 (79.22%) 3836 (6.45%) 246 (0.41%) 5830 (9.80%) 59496
swift-corelibs-foundation 886 (7.47%) 9424 (79.45%) 1283 (10.82%) 40 (0.34%) 229 (1.93%) 11862
swift-corelibs-libdispatch 45 (12.10%) 248 (66.67%) 54 (14.52%) 2 (0.54%) 23 (6.18%) 372
swift-package-manager 766 (15.92%) 3419 (71.04%) 570 (11.84%) 9 (0.19%) 49 (1.02%) 4813
swift-protobuf 2067 (4.54%) 36949 (81.07%) 3351 (7.35%) 2615 (5.74%) 592 (1.30%) 45574
SwiftyJSON 11 (2.40%) 366 (79.74%) 71 (15.47%) 0 (0.00%) 11 (2.40%) 459

About

Research into usage of keyword arguments in swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published