Re: New built-ins (`?whatever` things)... any opinions/ideas?
Denis Bredelet <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
All right, with Daniel that makes two votes for choose.
clicked?choose("show","hide")
My suggestion was clicked?either("show","hide")
Another choice would be then
clicked?then("show","hide")
It would be nicer with an else. We could use a default value. Then it would be between:
clicked?choose("show","")
clicked?choose("show","hide")
clicked?then("show")!
clicked?then("show")!"hide"
Just throwing some ideas...
-- Denis.
> Actually, I think I like "choose" best.
>
> On Thu, Aug 9, 2012 at 10:49 PM, Daniel Dekany <[email protected]> wrote:
>> Thursday, August 9, 2012, 6:19:58 PM, Attila Szegedi wrote:
>>
>>> On Wed, Aug 8, 2012 at 4:01 PM, Daniel Dekany <[email protected]> wrote:
>>>> Wednesday, August 8, 2012, 9:52:13 AM, Denis Bredelet wrote:
>>>>
>>>>> "chose" should really be "either" I think.
>>>>
>>>> (a < b)?either(a, b)
>>>> (a < b)?chose(a, b)
>>>>
>>>> I don't know... any votes? Or an even better name?
>>>
>>> Well, "chose" is the past tense of "choose" and as such not terribly
>>> intuituve.
>>
>> That was a terribly polite way of saying that my spelling sucks. :)
>>
>>> It seems that either "choose" or "choice" would be better, depending
>>> on whether you're going for a verb or a noun.
>>
>> We have both nouns and verbs as built-in names... Any vote?
>>
>> (a < b)?either(a, b)
>> (a < b)?choose(a, b)
>> (a < b)?choice(a, b)
>>
>> --
>> Best regards,
>> Daniel Dekany
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> FreeMarker-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freemarker-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> FreeMarker-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-devel
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/