Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Gabriel Dos Reis <gdr@cs...> - 2012-02-14 09:08:59
"Serge D. Mechveliani" <mechvel@...> writes:
| Another note on the Spad language:
| for a record
| Foo(coef: Integer, exp: Integer, root: Integer),
| its setting syntax by [1, 3, 2] :: Foo
| is a bug farm.
| Is not it?
| The syntax like [coef := 1, exp := 3, root := 2]
the suggested syntax already has a valid meaning: it sets three
variables and return a List Integer. It does not look like a better
alternative to the current syntax.
| (replace `:=' with something appropriate)
| is much more safe. And here the named fieds can be transposed, the
| programmer will not need to remember the order of, say, 6 fields.