freemarker-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Woonsan Ko <woon...@apache.org>
Subject Re: [FM3] TemplateModel interfaces cleanup
Date Fri, 03 Mar 2017 23:22:59 GMT
On Fri, Mar 3, 2017 at 1:49 AM, Daniel Dekany <ddekany@freemail.hu> wrote:
> While, yet again, I try to not invest too much into
> TemplateModel-s/ObjectWrapping due to the possibility to switching to
> MOP-s, I though some fast cleanup of concepts can help migration to
> MOP-s, and can help quite much anyone who wants to wrap their head
> around how things work. I would also do this for "safety", in case we
> won't do MOP-s at all due to time constraints.
+1

>
> Renaming some TempltaeModel-s:
> - TemplateScalarModel to TemplateStringModel
> - TemplateCollectionModel to TemplateIterableModel
> - TemplateCollectionModelEx to TemplateCollectionModel
+1

>
> TemplateSequenceModel should extend TemplateCollectionModel (I mean
> the one we have renamed to, FM2 TemplateCollectionModelEx).
Right. +1.

Cheers,

Woonsan

>
> (And if we won't switch to MOP-s, then there will me more to do,
> especially allowing non-String keys for "hashes"... that will be a
> hard one.)
>
> --
> Thanks,
>  Daniel Dekany
>

Mime
View raw message