What's the difference in F# between a private member and a let val? -


this question has answer here:

question in title. suppose have:

namespace namespace module module =   type public type() =     let z y = 2 * y     member private this.z y = 2 * y 

what difference between z , z?

thanks.

one thing consider reflection, private member becomes accessible.

also, can't call code in z until after constructor has completed


Comments

Popular posts from this blog

ruby - re-try logic in a simple loop -

ruby - Accessing variable name -

c# - Error in creating twitterizer app in asp.net -