1 people like it.
Like the snippet!
When we defined an F# class in explicit way, it's easy for new F# programmers to make this kind of mistakes when they define mult constructors: people will forget to initliza the class first before use it.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: |
|
Link: | http://fssnip.net/el |
Posted: | 12 years ago |
Author: | ZackZhou |
Tags: | constructor;f# |