Anonymous

My feedback

  1. 58 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    10 comments  ·  F# Language  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous commented  · 

    What about:

    f : int -> int -> int
    let f x y = x * y

    ...and ...

    M : int -> int
    member this.M(x) = x + 4

    same for let rec

    Anonymous supported this idea  · 
  2. 168 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    15 comments  ·  F# Language  ·  Flag idea as inappropriate…  ·  Admin →
    Anonymous commented  · 

    I think it is critical to look at the different versions of this concept and how they evolved in Haskell -- my understanding, weak as it may be, is that it took a while to get to ekmett's package and that is the one that you would want to model it after.

    One key thing that you want to preserve would be in addition to a regular getters and setters, you want the ability to set a value with function that uses the original value. For example, if you have a property that is an integer, you should be able to set it with an incrementing function:

    f x = x + 1

    and all of the variations that you might want with that.

Feedback and Knowledge Base