This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-22
Channels
- # announcements (11)
- # babashka (4)
- # beginners (98)
- # calva (18)
- # chlorine-clover (1)
- # cider (44)
- # clj-kondo (6)
- # clojure (61)
- # clojure-australia (4)
- # clojure-dev (4)
- # clojure-europe (132)
- # clojure-italy (5)
- # clojure-nl (4)
- # clojure-uk (31)
- # clojurescript (40)
- # community-development (8)
- # conjure (20)
- # data-science (1)
- # datomic (42)
- # defnpodcast (6)
- # emacs (3)
- # events (1)
- # fulcro (9)
- # graphql (2)
- # hugsql (1)
- # jobs (1)
- # malli (4)
- # off-topic (28)
- # pathom (27)
- # rdf (1)
- # re-frame (10)
- # reagent (4)
- # remote-jobs (1)
- # reveal (32)
- # sci (5)
- # shadow-cljs (18)
- # spacemacs (1)
- # tools-deps (62)
- # xtdb (4)
!!måning
morning
@dharrigan I just checked our code and it looks like we mostly follow a third version:
(defn foobar
^FunkyReturnType [some-magic-variable]
...
separate lines if you do args on separate lines prob?
mild preference for separate lines
I prefer alot of short lines because it make stacktraces more precise to diagnose what bit actually went wrong
and often enough a stacktrace is all you have got to go on...
@dharrigan neither. Same line as args.
You can have different return type per arity, so the type isn't on the function per se.
ah good i see boris whipped the tories to block free school meals over school holidays
a really good look at a time of already acute food poverty x coronavirus crisis
long sigh
imagine getting up in the morning, looking in the mirror and going 'yes i am the sort of person that actively wants children to be hungry'
what a motivator eh
yeah hes got a picture of a mirror; and that picture shows the reflection of Chris Tarrant
so he lives his life blissfully unaware
@dharrigan I just checked our code and it looks like we mostly follow a third version:
(defn foobar
^FunkyReturnType [some-magic-variable]
...
(with a "docstring"
on the line(s) between the function name and the return type/args)