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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:30:14+00:00 2026-05-12T07:30:14+00:00

There’s this dichotomy in the way we can create classes in f# which really

  • 0

There’s this dichotomy in the way we can create classes in f# which really bothers me. I can create classes using either an implicit format or an explicit one. But some of the features that I want are only available for use with the implicit format and some are only available for use with the explicit format.

For example:

  1. I can’t use let inline* (or let alone) inside an explicitly defined class.

  2. The only way (that I know) to define immutable public fields (not properties*) inside an implicitly defined class is the val bla : bla syntax.

    But there’s a redundancy here. Since I’ll end up with two copy of the same immutable data, one private, one public (because in the implicit mode the constructor parameters persist throughout the class existence)

  3. (Not so relevant) The need to use attributes for method overloading and for field’s defaults is rather off putting.

Is there anyway I can work around this?

*For performance reasons

EDIT: Turns out I’m wrong about both points (Thanks Ganesh Sittampalam & MichaelGG).

  1. While I can’t use let inline in both implicit & explicit class definition, I can use member inline just fine, which I assume does the same thing.

  2. Apparently with the latest F# there’s no longer any redundancy since any parameters not used in the class body are local to the constructor.

  3. Will be gone in the next F# release.

  • 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-12T07:30:14+00:00Added an answer on May 12, 2026 at 7:30 am

    This might not help, but you can make members inline. “member inline private” works fine.

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

Sidebar

Related Questions

There are few apps like Strava which records users movements using GPS. It also
There is previous little on the google on this subject other than people asking
There are numerous Agile software development methods. Which ones have you used in practice
There are several shading languages available today like GLSL, HLSL, CG, which one to
There are many string matching algorithms can be used to find a pattern (string)
There's a bug in FireBug: I accidentally clicked where the line numbers are, which
There is this strange situation I'm fighting on. I have 3 pages, les call
There is a div (form) which opens on the click of a button. There
There are two tables: aspnet_users and aspnet_membership. Can anyone elaborate on the reasons why
There was a thread on this in comp.lang.javascript recently where victory was announced but

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.