Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3456176
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:42:15+00:00 2026-05-18T09:42:15+00:00

I start reading Lift framework source code, I find that there’re so many methods

  • 0

I start reading Lift framework source code, I find that there’re so many methods are defined using a name like methodName_? , is there a convention that _? has some special meaning?

def empty_? : Boolean = {}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:42:16+00:00Added an answer on May 18, 2026 at 9:42 am

    The ? denotes that this is a predicate, a function returning Boolean. This convention goes back to Lisp, where ? (Scheme), p or -p (other Lisps, simulating the question mark with a “similar” letter) also denote predicates. Think of it as asking a question, “is the object empty?”

    Scala will only allow mixed identifier names (containing alphanumerics and punctuation) if you separate them by _. E.g.,

    scala> def iszero?(x : Int) = x == 0 
    <console>:1: error: '=' expected but identifier found.
           def iszero?(x : Int) = x == 0
                     ^
    

    doesn’t work, but

    scala> def iszero_?(x : Int) = x == 0          
    iszero_$qmark: (x: Int)Boolean
    

    does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before you start reading... You should know that there are many questions below... I
I recall reading somewhere that using references to smart pointers can cause memory corruption.
How do you specify where to start reading in a file when using StreamReader?
Does stdin have any EOF? For example, if I start reading from stdin using
How to use SqlTransaction in .net 2.0 so that when I start reading data
Reading this blog post about HttpOnly cookies made me start thinking, is it possible
I'm about to start learning Ruby and would like a bit of reading material
Start a new Silverlight application... and in the code behind (in the Loaded event),
I start to write a client - server application using .net (C#) for both
To start, I know there are two kinds of JSON serialization currently built into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.