1 Aug 2011 07:38
Re: Re: new release of Efficient Scalars in Scala (plus something extra!)
Hi Peter, but physical units actually are values, and multiplying them is actually what you want to do. I think that using ‘*’ makes perfect sense here. Otherwise: which special character would you propose? Regards, Roland On Jul 31, 2011, at 22:02 , Sonnenschein wrote: > Hi Mirco, > > if so, are not operators beginning with a special character more > suited than "*" in this case? They not only have higher precedence but > also no resemblance with multiplication. Now if we have > val x = 5.2 * m > I'd intuitivelly think that m is a value... > > Peter > > On 31 Jul., 17:19, Mirco Dotta <mirco.do...@...> wrote: >> I'm not at all familiar with the library, but my guess is that by using * you can >> tweak how the expression is parsed, so that parenthesis are not needed. >> >> Using operators' precedence is a common strategy for writing DSLs in Scala. >> >> Cheers,(Continue reading)
RSS Feed