29 Dec 07:23
Re: Maps in scala --> PLEAC
Doug Landauer <zia <at> cruzio.com>
2006-12-29 06:23:58 GMT
2006-12-29 06:23:58 GMT
On Dec 27, 2006, at 10:31 PM, steve.bendiola wrote:
> I was going to update the wiki with the different ways to
> access/modify maps...
I'd suggest also listing a way or two that you *can't* create maps,
e.g., via a language-defined literal, like Ruby's Hash class, or
Python's dictionaries, or even the weird Java "{{ ... }}" shortcut
for constructors.
> Jamie Webb wrote:
>> Trouble is, personally I would have trouble identifying 'tips' unless
>> I'm asked a question.
Coming from Ruby and Python, I miss having a concise syntax for Hash/map
literals, and for tuple literals. Not so much in the sense of
considering
it a flaw in Scala, but in the sense that it would save me time if I
knew
there were no such syntax -- I wouldn't spend my time looking for it.
One thing that would help with this kind of question would be a "pleac"
page on Scala. Maybe it could be created collaboratively, on the Scala
Wiki,
to get it going, before sending the results to the pleac folks.
http://pleac.sourceforge.net/
http://pleac.sourceforge.net/pleac_java/hashes.html
Just a thought.
Maybe a New Year's Resolution for the more guilt-trippable among us ...
-- Doug L.
RSS Feed