Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualsam_hughes

Posted 10 March 2013 - 07:39 PM

Other times you find yourself needing "throw-away" or "temporal" types -- types that exist maybe in one place, and so don't need to be shared around. You can typedef those too, but I don't think that usually buys any more semantic understanding either. Most times that you use an iterator is a good example of this, lambdas are another. In functional languages, the pattern is to create these kinds of temporal types all the time wherever they're needed, and you hardly even think about it that way.

 

You don't create "temporal" types in functional languages.  What are you talking about?


#1sam_hughes

Posted 10 March 2013 - 07:37 PM

Other times you find yourself needing "throw-away" or "temporal" types -- types that exist maybe in one place, and so don't need to be shared around. You can typedef those too, but I don't think that usually buys any more semantic understanding either. Most times that you use an iterator is a good example of this, lambdas are another. In functional languages, the pattern is to create these kinds of temporal types all the time wherever they're needed, and you hardly even think about it that way.

 

No, you don't create "temporal" types in functional languages.  What are you talking about?


PARTNERS