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 221597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:02:54+00:00 2026-05-11T19:02:54+00:00

I’m getting stymied by the way dot notation works with objects and records when

  • 0

I’m getting stymied by the way “dot notation” works with objects and records when trying to program in a point-free functional style (which I think is a great, concise way to use a functional language that curries by default).

Is there an operator or function I’m missing that lets me do something like:
(.) object method instead of object.method?

(From what I was reading about the new ? operator, I think it works like this. Except it requires definition and gets into the whole dynamic binding thing, which I don’t think I need.)

In other words, can I apply a method to its object as an argument like I would apply a normal function to its argument?

  • 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-11T19:02:54+00:00Added an answer on May 11, 2026 at 7:02 pm

    Short answer: no.

    Longer answer: you can of course create let-bound functions in a module that call a method on a given type… For example in the code

    let l = [1;2;3]
    let h1 = l.Head 
    let h2 = List.hd l
    

    there is a sense in which “List.hd” is the version of what you want for “.Head on a list”. Or locally, you can always do e.g.

    let AnotherWay = (fun (l:list<_>) -> l.Head)
    let h3 = AnotherWay l
    

    But there is nothing general, since there is no good way to ‘name’ an arbitrary instance method on a given type; ‘AnotherWay’ shows a way to “make a function out of the ‘Head’ property on a ‘list<_>’ object”, but you need such boilerplate for every instance method you want to treat as a first-class function value.

    I have suggested creating a language construct to generalize this:

    With regards to language design
    suggestions, what if

     SomeType..Foo optArgs   // note *two* dots 
    

    meant

     fun (x : SomeType) -> x.Foo optArgs 
    

    ?

    In which case you could write

    list<_>..Head
    

    as a way to ‘functionize’ this instance property, but if we ever do anything in that arena in F#, it would be post-VS2010.

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

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Really easy. The UIImageView has built in support for such… May 11, 2026 at 11:32 pm
  • Editorial Team
    Editorial Team added an answer The reason you can't find examples it's not best practice… May 11, 2026 at 11:32 pm
  • Editorial Team
    Editorial Team added an answer I found a method to do this with Entity SQL,… May 11, 2026 at 11:32 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.