> For the parameter handling, see my mail about the template-file > formatter. I have had this conversation unsuccessfully before -- I > guess the higher order programming is unconventional to some, but if > you look at the Java version, you'll see what it looks like just using > plain classes. > > Basically JSON Template supports arguments, but it does not > *implement* them. It's done by user code via > more_formatters/more_predicates, so that people can choose their own > argument style. This is important to understand about the design.
I'm confused. The only difference is that I don't use more_formatters (leaving it for *really* special occasions). In the version I posted, it doesn't interpret the parameters at all, it simply gives the text to the function for it to interpret. I was listening to your argument and agreed (and was able to create stuff that looked much better than I had before to boot). I simply moved the code around a bit to make using that functionality easier. Note this is the reverse of what I had said/done earlier in the week (or last week) when I had put operators and the like in there. As for the code, it wouldn't work out of the box, I should have mentioned that. It wasn't meant to. I use some utility functions that are not in JsonTemplate. It was more so you could comment on specifics. And see if it was then worth generating the tests, using your style of coding, installing Python, etc. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JSON Template" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/json-template?hl=en -~----------~----~----~----~------~----~------~--~---
