On Thu, Mar 12, 2009 at 8:57 AM, mal3 <[email protected]> wrote:
>
> Why do names of Boolean variables with a ? at the end have a preceding
> _ character?
>
> I see this in some Lift code. There must be some reason for it --
> perhaps a Scala-ly reason -- that escapes me.
Yes, you cannot mix letters/numbers and symbols in method names unless the
symbols are stand-alone or set off by the _
scala> def foo? = false
<console>:1: error: '=' expected but identifier found.
def foo? = false
^
scala> def foo_? = false
foo_$qmark: Boolean
>
>
> Mal.
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---