From 64d8c0ccc0090c4cd822a3044a31de11a730f1c6 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 30 Jul 2015 08:16:34 -0700 Subject: [PATCH] reddit: stop using tuples and just use the JSON. Nice-looking tuples are nice but reddit keeps adding fields to their objects and breaking our from-slots. We could hide the error, or ignore the extra fields but this is probably better for now. --- extra/reddit/reddit.factor | 81 ++++++++++++-------------------------- 1 file changed, 26 insertions(+), 55 deletions(-) diff --git a/extra/reddit/reddit.factor b/extra/reddit/reddit.factor index ee6d44cbd2..20f607081c 100644 --- a/extra/reddit/reddit.factor +++ b/extra/reddit/reddit.factor @@ -1,53 +1,19 @@ ! Copyright (C) 2011-2012 John Benediktsson ! See http://factorcode.org/license.txt for BSD license -USING: accessors assocs calendar classes.tuple colors.constants -colors.hex combinators formatting http.client io io.styles json -json.reader kernel make math math.statistics sequences urls -namespaces fry ; +USING: accessors assocs calendar colors.constants colors.hex +combinators formatting fry http.client io io.styles json +json.reader kernel make math math.statistics sequences urls ; IN: reddit