Originally posted by Icemage
Originally posted by Icemage
Originally posted by Icemage
Type inference is borderline necessary if you want higher-order functions to be easy to use. Besides, the bureaucracy of type annotations is probably the main reason people like dynamically unityped languages like Python or Ruby. If so many people are willing to cripple themselves with dynamic typing, clearly they think mandatory type annotations everywhere is overkill. You can include the types of variables if you want to, and everything is perfectly type safe even if you don't.
If you're willing to gloss over OOP's multiple shortcomings because you have Best Practices and Coding Standards, I don't see why you'd hold type inference against F# - especially since documenting your code is mandatory everywhere regardless of language. In the very worst case, the IDE still knows the types.
Originally posted by Icemage


Leave a comment: