Skip to content

Instantly share code, notes, and snippets.

//
// Structured.swift
//
// Created by daniel sweeney on 6/5/20.
// Copyright © 2020 daniel sweeney. All rights reserved.
//
import Foundation
// MARK: ------ Basic Structure ------
#include <stdio.h>
// clang++ -std=c++14 -o test test.cc && ./test
struct A {
private:
int _x = 10;
int _y = 11;
public:
A(int x, int y) : _x(x), _y(y) {printf("2arg\n");}
### Keybase proof
I hereby claim:
* I am dfsweeney on github.
* I am dfsweeney (https://keybase.io/dfsweeney) on keybase.
* I have a public key whose fingerprint is B7AB 1F2B D518 413F AD55 61BB 99C3 186B 85A3 E0EB
To claim this, I am signing this object:
import Swift
import Cocoa
// Properties you need as an enum - problem of key value coding is it allows you to type *anything*, typos compile fine.
enum SyncObjectPropertyName {
case Archived
case Title
}
// Protocol shared both for local and server