14 Feb 2012 10:08
Re: [open-axiom-devel] setting a record
"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. | | Regards, | | ------ | Sergei | mechvel@... ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!(Continue reading)
RSS Feed