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

  • SEARCH
  • Home
  • 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 4320568
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:38:55+00:00 2026-05-21T08:38:55+00:00

I know that in some languages (Haskell?) the striving is to achieve point-free style,

  • 0

I know that in some languages (Haskell?) the striving is to achieve point-free style, or to never explicitly refer to function arguments by name. This is a very difficult concept for me to master, but it might help me to understand what the advantages (or maybe even disadvantages) of that style are. Can anyone explain?

  • 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-21T08:38:55+00:00Added an answer on May 21, 2026 at 8:38 am

    I believe the purpose is to be succinct and to express pipelined computations as a composition of functions rather than thinking of threading arguments through. Simple example (in F#) – given:

    let sum = List.sum
    let sqr = List.map (fun x -> x * x)
    

    Used like:

    > sum [3;4;5]
    12
    > sqr [3;4;5]
    [9;16;25]
    

    We could express a “sum of squares” function as:

    let sumsqr x = sum (sqr x)
    

    And use like:

    > sumsqr [3;4;5]
    50
    

    Or we could define it by piping x through:

    let sumsqr x = x |> sqr |> sum
    

    Written this way, it’s obvious that x is being passed in only to be “threaded” through a sequence of functions. Direct composition looks much nicer:

    let sumsqr = sqr >> sum
    

    This is more concise and it’s a different way of thinking of what we’re doing; composing functions rather than imagining the process of arguments flowing through. We’re not describing how sumsqr works. We’re describing what it is.

    PS: An interesting way to get your head around composition is to try programming in a concatenative language such as Forth, Joy, Factor, etc. These can be thought of as being nothing but composition (Forth : sumsqr sqr sum ;) in which the space between words is the composition operator.

    PPS: Perhaps others could comment on the performance differences. It seems to me that composition may reduce GC pressure by making it more obvious to the compiler that there is no need to produce intermediate values as in pipelining; helping make the so-called “deforestation” problem more tractable.

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

Sidebar

Related Questions

I know that some other languages, such as PHP , support a concept of
In jquery when I run: $('li').each(some-function(i){}); The IDE seems to know that some-function is
I know that if I am inside some function foo() which is called somewhere
Sorry guys, I'm a noob. I know that some languages support type casting, but
I know that (at least for some JIT-ed languages like Java) that declaring member
I know that in C# it isn't, and it is in languages like Haskell
I know that the additional consideratiosn when compiling for x64 is that some data
I know that there are some threads have a similar issue with this thread.
i know that there is some rules and standards in css handling but i
I know that there must be some differences. I have a Silverlight component (

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.