Karl

Results 50 issues of Karl

Sometimes, you want to insert/remove elements from a collection without creating a copy and mutating it. It's kind of a generalisation of `chain`. And maybe `joined`. I still need to...

`FoundationToWeb` tests are (intentionally) tightly coupled to the `Foundation.URL` implementation. For instance: 1. It uses Foundation's test database of interesting input strings, which it then parses with `Foundation.URL` and checks...

CI currently fails to build DocC-render. Might have something to do with Github updating Node. Here's the log: ``` > Run cd swift-docc-render; npm install && npm run build; cd...

TODO: - [x] Format tests. - [ ] Make sure there are tests for semicolons in content being automatically encoded when using `ExtendedForm` schema. - [ ] Allow the schema...

### Context Developers are already using these characters as subcomponent delimiters - in query strings, `foo[]=a&foo[]=b` is sometimes used to encode an array of `[a, b]`, and `color[r]=100` may be...

From [the table](https://url.spec.whatwg.org/#ref-for-validation-error), I've only done the "URL parsing" section, not the IDNA or host parsing sections. Having this in the reference implementation has already helped me confirm a couple...

**Description** Almost everything in Swift uses camelCase. A notable exception is `associatedtype`. If a user happens to write `associatedType` in a protocol declaration we currently provide rather poor diagnostics, assuming...

SwiftParser

Use the standard library's random API via a C shim, so we're not limited to 8 bytes per syscall. Technically, the compiler headers [say](https://github.com/apple/swift/blob/687cee9bfa213de235236d7510bd371856735b90/stdlib/public/SwiftShims/Visibility.h#L245): ``` /// SWIFT_RUNTIME_STDLIB_API functions are called...

I noticed that this library [uses CoreFoundation directly](https://github.com/apple/swift-http-types/blob/39661f4ca82db8ad050cc060a471c8e2c542b24f/Sources/HTTPTypesFoundation/HTTPRequest%2BURL.swift#L15). IIRC that is not portable; CF is available on Darwin platforms and Linux, but is deliberately omitted from other platforms (e.g. Windows)....

kind/enhancement

Most of this isn't related to the linked bug report. I had some pending changes which just happened to touch the same bits of code.