Good Morning!
o/
Morning
đź‘‹
morning
Morning
Mornin
Morning
mĂĄnmĂĄn
Is reify perferred over proxy nowadays?
they have slightly different capabilities iirc - proxy lets you extend an abstract class, reify is interface only. i tend to use reify more, but that's probably because i'm more often implementing a protocol than extending an abstract class. i've no idea if one is "better" than the other for just implementing java interfaces
Reify has better performance than proxy
Right, cool, so it's interfaces I'm extending. Rigthyho
ta
Here's another question, say you have an interface with, say 5 methods, with reify, do you have to provide implementations for both, or can you implement one and ignore the rest?
Is 20% of a bird a bird?
AFAIK you need to implement them all. You could probably give them no-op implementations, though
That’s a profound question. Is 20% of a bird a bird? Depends on the use-case I suppose 🙂
I mean, at the DNA level, I suppose yes, it’s still a bird.
I had roast chicken last night. Perhaps about 20% of that chicken was consumed 🙂
<delurk> I take the view that an interface is a contract. “Implement these methods and then your reified class satisfies the contract (and is a bird or whatever).” If you don’t implement all of them then you don’t comply
anyone here using clojurescript with react-native atm ? what's the best toolchain now ?
user=> (definterface i (f []) (g []))
user.i
user=> (.f (reify i (f [_] 1)))
1
user=> (.g (reify i (f [_] 1)))
Execution error (AbstractMethodError) at user/eval157 (REPL:1).
user$eval157$reify__158.g()Ljava/lang/Object;
oooh
that's good to know.
thank you! 🙂
@mccraigmccraig cordova finally crossed you for the last time?
@alex.lynham pretty much. insufficient community energy behind it, too few plugins with too low quality
the question is how long before react becomes the rails of the JS world
would that be a good thing? i liked rails - wasn't so fond of ruby tho
maybe i stopped using rails before obsolescence set it... ruby's awful scoping and bad-magic metaprogramming facilities really did my head in though
yeah the metaprogramming got p wild and unmaintainable p fast
Someone pointed me to this today: https://devdocs.io/
has clojure too