Fork me on GitHub
#hoplon
<
2017-10-04
>
thedavidmeister03:10:54

i feel like :class is becoming less and less useful (or rather, requiring more and more boilerplate) as my app gets more complex and i break components down into smaller pieces

thedavidmeister03:10:41

so maybe this is more of a feature request than a bug

thedavidmeister03:10:33

is it right to say that if we implement a multimethod that matches every namespace for :class then you would no longer be able to BYO your own implementation?

thedavidmeister03:10:23

and also, could we implement something that dispatches on :hoplon.bar/class and :hoplon.foo/class?

flyboarder03:10:59

@thedavidmeister we could implement something that catches namespaces for class, I believe that would require keyword inheritance, another option is a new macro for the do! multimethod defattribute perhaps?

thedavidmeister03:10:34

could you give an example of what that would look like?

flyboarder03:10:47

Yep, one minute, I'm on mobile right now

thedavidmeister03:10:57

or even :class/foo and :class/bar maybe?

thedavidmeister03:10:06

i don't know what would be more conventional

flyboarder03:10:51

@thedavidmeister there are namespaced defaults for :html/* :css/* :attr/* :prop/* :svg/*

thedavidmeister03:10:07

yes, so could class be one?

flyboarder03:10:51

I’ll add one for the :class/* set since this seems useful

thedavidmeister03:10:01

nice, ping me when you do and i'll update the test for it

thedavidmeister04:10:25

on an unrelated note, has anyone done anything like https://joshwcomeau.github.io/react-flip-move/examples/#/?_k=kmex6e with hoplon?

flyboarder04:10:41

Not sure, could probably be wrapped tho

flyboarder04:10:48

Also test passing again

thedavidmeister05:10:12

i'll check out the tests

thedavidmeister05:10:30

for the flip move thing i was thinking more about the technique than the library, as it seems to be for react

thedavidmeister05:10:31

i think rearranging things is a weak point of hoplon atm, so it would be good to see what might be done there

thedavidmeister05:10:53

@flyboarder class looks cool 🙂 i added a couple more tests, but it's all passing afaics

thedavidmeister05:10:12

could you push to clojars?

meeli07:10:12

@flyboarder @thedavidmeister this is awesome (the class stuff)

flyboarder18:10:25

@thedavidmeister ill get around to pushing today