From 65185fb3fd3eeaeef2d1a12ca910bb72267a20a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 6 Oct 2015 13:50:12 +0200 Subject: [PATCH] Record documentation --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e35c704d0..bec2f5473 100644 --- a/README.md +++ b/README.md @@ -1274,9 +1274,13 @@ class Person : Record { } ``` +Yes, that's not very [DRY](http://c2.com/cgi/wiki?DontRepeatYourself), and some will mourn [Key-Value Coding](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueCoding/Articles/KeyValueCoding.html). But wait until you have to store types such as NSDate, NSURL, Swift enums, or compound properties such as CLLocationCoordinate2D: then you may remember how KVO would have turned your clean model into a mess of ad-hoc properties mandated by the devoring KVO-Goddess. + +Anyway. + Given those three core methods, you are granted with a lot more: -``` +```swift class Record { // Initializers init()