- Proposal: SE-0405 String initializers with encoding validation
- Author: Guillaume Lessard
- Review Manager: TBD
- Status: Pitch
- Bugs: rdar://99276048, rdar://99832858
- Implementation: (pending)
- Proposal: SE-NNNN Constrain Pointer Conversion Feature to C-interoperability
- Author: Guillaume Lessard, Alejandro Alonso
- Review Manager: TBD
- Status: pending
- Implementation: pending
- Bugs: rdar://92429037
- Previous Revision:
- Proposal: SE-NNNN Unaligned Loads & Stores from Raw Memory
- Authors: Guillaume Lessard, Andrew Trick
- Review Manager: TBD
- Status: pitch phase
- Implementation: [draft pull request][draft-pr]
- Bugs: SR-10273 (rdar://63919502)
- Proposal: [SE-NNNN Better Buffer Slices (and Partial Initialization of Buffers)][proposal]
- Author: Guillaume Lessard
- Review Manager: TBD
- Status: pending
- Implementation: [Draft Pull Request][draft-pr]
- Bugs: rdar://51817146
- Previous Revision: none
- Proposal: [SE-NNNN Initialization improvements for UnsafePointer and UnsafeBufferPointer family][proposal]
- Author: Guillaume Lessard
- Review Manager: TBD
- Status: [Draft Pull Request][draft-pr]
- Implementation: pending
- Bugs: rdar://51817146, https://bugs.swift.org/browse/SR-14982 (rdar://81168547), rdar://74655413
- Previous Revision: none
- Proposal: [SE-NNNN full proposal draft][proposal]
- Authors: Guillaume Lessard, Andrew Trick
- Review Manager: TBD
- Status: [Draft pull request][draft-pr]
- Implementation: pending
- Bugs: rdar://64342031, SR-11156 (rdar://53272880), rdar://22541346
- Previous Revision: none
- Proposal: [SE-NNNN][proposal]
- Authors: Guillaume Lessard, Andrew Trick
- Review Manager: TBD
- Status: Pending
- Implementation: [draft pull request][draft-pr]
- Decision Notes: TBD
- Bugs: SR-11082, SR-11087
- Previous Revision: none
I hereby claim:
- I am glessard on github.
- I am glessard (https://keybase.io/glessard) on keybase.
- I have a public key ASBg9FfGSW_7QAPJ-Sd1KFxbrIzz4KVj4PgcwmlUTGkR5wo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// url-extensions.swift | |
// | |
// Created by Guillaume Lessard | |
// Copyright (c) 2018 Guillaume Lessard. All rights reserved. | |
// | |
// https://gist.github.com/glessard/a2b2916aa74f082a58d50a674174f1a4 | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Result<Value> | |
{ | |
private let state: State<Value> | |
init(_ value: Value) { | |
state = .value(value) | |
} | |
init(_ error: Error) { | |
state = .error(error) |
NewerOlder