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

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -