#Every Single Option Under The Sun
- optimization level options
- automatic crashing options
- debug info options
- swift internal options
- swift debug/development internal options
- linker-specific options
- mode options
#Every Single Option Under The Sun
When Swift was first announced, I was gratified to see that one of the (few) philosophies that it shared with Objective-C was that exceptions should not be used for control flow, only for highlighting fatal programming errors at development time.
So it came as a surprise to me when Swift 2 brought (What appeared to be) traditional exception handling to the language.
Similarly surprised were the functional Swift programmers, who had put their faith in the Haskell-style approach to error handling, where every function returns an enum (or monad, if you like) containing either a valid result or an error. This seemed like a natural fit for Swift, so why did Apple instead opt for a solution originally designed for clumsy imperative languages?
I'm going to cover three things in this post:
| [ | |
| { | |
| "action": { | |
| "type": "block" | |
| }, | |
| "trigger": { | |
| "url-filter": ".*", | |
| "resource-type": ["script"], | |
| "load-type": ["third-party"], | |
| "if-domain": ["imore.com"] |
| // | |
| // ArrayDiff.swift | |
| // | |
| // Created by Frank A. Krueger on 6/30/15. | |
| // Copyright © 2015 Krueger Systems, Inc. All rights reserved. | |
| // License: MIT http://opensource.org/licenses/MIT | |
| // | |
| import Foundation |
| #!/bin/sh | |
| # | |
| # install_xcode.sh | |
| # | |
| # Created by Andrew McKnight on 9/24/15 | |
| # | |
| # takes a downloaded .dmg containing Xcode and installs it to a specified location/name, or defaults to /Applications and the DMG's filename | |
| # |
| SELECT pods.name, stats_metrics.download_total, stats_metrics.download_week, stats_metrics.app_total, stats_metrics.app_week FROM stats_metrics JOIN pods ON stats_metrics.pod_id = pods.id ORDER BY app_total DESC LIMIT 300; |
| import com.squareup.okhttp.ResponseBody; | |
| import okio.BufferedSink; | |
| import okio.Okio; | |
| import retrofit.Response; | |
| import retrofit.http.GET; | |
| import retrofit.http.Query; | |
| import rx.Observable; | |
| interface ApiService { |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import hashlib | |
| import argparse | |
| import binascii | |
| import struct | |
| def encrypt_v1(imei, key): |
| # Before running this script execut the following command: | |
| # $ pip install requests | |
| # To run this script execute: | |
| # $ python export_foursquare_checkins.py | |
| import requests | |
| import json | |
| url_template = 'https://api.foursquare.com/v2/users/self/checkins?limit=250&oauth_token={}&v=20131026&offset={}' | |
| # If you navigate to https://developer.foursquare.com/docs/explore, Foursquare |