Fork me on GitHub
#hoplon
<
2017-05-26
>
thedavidmeister01:05:36

i just use vanilla atom with autocomplete disabled + parinfer plugin

flyboarder02:05:26

@thedavidmeister what are you trying to do when that happens?

flyboarder02:05:45

Looks like you might be missing a parent element before a template macro

thedavidmeister02:05:52

@flyboarder i don't know, it just got reported from sentry

thedavidmeister02:05:03

i'm usually pretty careful about that

flyboarder02:05:38

That would be my first guess

thedavidmeister02:05:58

i'll see how hard it is to audit all the tpls in my project 😕

thedavidmeister03:05:47

@flyboarder i've definitely seen problems with appendChild from tpls but removeChild is new for me

jouerose11:05:51

@thedavidmeister thanks. which theme do you use in atom for clojure ?

thedavidmeister11:05:31

@jouerose just one of the default ones i think

thedavidmeister11:05:59

with parinfer on, it doesn't matter so much

jouerose11:05:46

thinking about hoplon. although defelem expects attributes and children as arguments, he dynamic nature of clojure, fundamentally is there any worry about if i use these two arguments as not a map in the case of attributes and not children in the case of children ?

thedavidmeister11:05:23

if you want to control your own arguments, use defn

thedavidmeister11:05:44

if you want the convenience of a macro "scooping up" all the args and normalising it to attributes and children, use defelem

thedavidmeister11:05:00

that's all defelem does, so if you want different args don't use it

jouerose11:05:07

@thedavidmeister thanks for your advice.