Good morning
Good Morning!
!!måning
morning
Style question, when using type hinting (for interop stuff), do people perfer this
(defn foobar ^FunkyReturnType
[some-magic-variable]
....
or
(defn foobar
^FunkyReturnType
[some-magic-variable]
....
type hint on same line or separate line of the defn name
separate lines if you do args on separate lines prob?
mild preference for separate lines
I think I'll go with separate lines, as yes, my variables are on a separate line
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...
mogge
@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
ah, so you would have something akin to:
^FunkyReturnType [some-magic-variables]
I don't think Boris would see his reflection in the mirror
yeah hes got a picture of a mirror; and that picture shows the reflection of Chris Tarrant
so he lives his life blissfully unaware
(with a "docstring"
on the line(s) between the function name and the return type/args)
cool, thank you.
^ I like that one