Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 8 of 13
Nov 22, 2009 at 2:58 AMI'm mystified by Erik's comment that the inserting calls to parse "makes the type conversion explicit".
I can certainly see that:
parse p "something"
is preferable to
p "something"
However, to me it seems that it makes semantics exlicit rather than type conversion.
Erik hardly seems more likely to be confused here than I am, so I think I'm missing some fundamental alternative way of viewing this.
As I'm writing this I think I'm starting to get it. Using parse makes it explicit that p is a parser. Since applying a parser to a value always returns a value with a type that has the same relationship to the input value's type, using parse makes both the semantics and the type conversions explicit.
Am I understanding this correctly?
If not, I'd appreciate it if someone could expand upon Erik's statements.