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
Post a Comment