Fork me on GitHub
#hoplon
<
2017-01-30
>
thedavidmeister13:01:21

@mynomoto well, i made a cell that formats/parses numbers/strings according to the current locale, but it ended up being much larger than a snippet 😕

thedavidmeister13:01:37

not sure where i18n would sit, if anywhere, in hoplon/javelin

mynomoto15:01:40

@thedavidmeister I think a library is appropriate for that.

xssive22020:01:20

I have a very general question about for-tpl.

xssive22020:01:51

Support I want to bind something to items in a formula cell, do I really have to: (for-tpl [item (cell= (someactions coll))] (... derefs all over the place...))

xssive22020:01:02

My code has a couple of for-tpl's where items are pulled in from a formula cell, which is ugly, while for an input cell everything is neat and automatically dereffed.

xssive22020:01:59

I get data back from castra in an input cell, but because the data needs a function to be called on it first I end up with a formula cell

xssive22020:01:52

I put the required actions within the defrpc block, but it still needs me to deref everything in for-tpl ..

dm321:01:57

try (th (text (name k))

dm321:01:05

k is an instance of Cell

xssive22021:01:54

I realize after experimenting that only hoplon functions can auto-deref it, so I should (map name ...) the elements in a defc=... I guess

xssive22021:01:12

I get it... I have some ugly constructs to clean up in my code.. 🙂 Thanks, @dm3

dm321:01:19

or rather (th (cell= (name k)))

dm321:01:23

I might be misremembering

dm321:01:14

anyway, for-tpl will give you a Cell as a result

xssive22022:01:52

Both work 🙂