logo       

[VW] Porting 2.6a2 - WAHtmlAttributes: msg#00160

lang.smalltalk.squeak.seaside

Subject: [VW] Porting 2.6a2 - WAHtmlAttributes

Hi Avi,

I find the api of WAHtmlAttributes a bit strange.
#at: answers the value while #at:ifAbsent: and #at:ifAbsentPut: answer
an association

This imposes strange, difficult-to-read and error prone (imho)
constructs like:

id := (html attributes at: 'id' ifAbsent: ['id' ->
'default-id']) value.

One would rather expect a behavior similar to Dictionary.

Any chance to see this corrected ?

Michel.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise