Re: Is it a bug? Implicit map interferes with nonEmpty call

Andrew Phillips <[email protected]> Sat, 5 Nov 2016 08:54:13 -0700 (PDT)
Newsgroups gmane.comp.lang.scala
Message-ID <[email protected]>
------=_Part_850_947630851.1478361253409
Content-Type: multipart/alternative; 
	boundary="----=_Part_851_1768345263.1478361253409"

------=_Part_851_1768345263.1478361253409
Content-Type: text/plain; charset=UTF-8

> implicit def innocentMap() = Map("foo" -> Set("bar"))

Somewhat tangential: would using parens for an no-argument function that 
isn't side-effecting be considered poor style? 

http://docs.scala-lang.org/style/method-invocation.html#arity-0

Or is that advice to be interpreted as "drop only if not side-effecting", 
rather than "drop if and only if ..."?

Regards

ap

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

------=_Part_851_1768345263.1478361253409
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">&gt; implicit def innocentMap() =3D Map(&quot;foo&quot; -&=
gt; Set(&quot;bar&quot;))<div><br></div><div>Somewhat tangential: would usi=
ng parens for an no-argument function that isn&#39;t side-effecting be cons=
idered poor style?=C2=A0</div><div><br></div><div>http://docs.scala-lang.or=
g/style/method-invocation.html#arity-0</div><div><br></div><div>Or is that =
advice to be interpreted as &quot;drop only if not side-effecting&quot;, ra=
ther than &quot;drop if and only if ...&quot;?</div><div><br></div><div>Reg=
ards</div><div><br></div><div>ap</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;scala-language&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">scal=
[email protected]</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_851_1768345263.1478361253409--

------=_Part_850_947630851.1478361253409--