News for hackers. Stuff that matters.
Re:Shen more strongly typed than Haskell? by jules on Tuesday September 09, 2014 @10:45AM (#8290375)
The n can come from the database, a file, or even user input from a text box. That's the point of dependent types: types can depend on run-time values.
Re:Shen more strongly typed than Haskell? by tel on Tuesday September 09, 2014 @01:04PM (#8291259)
Well, the n must "come from" the actual data. You could not construct a vector of any other size n. It'll just be typed so as to be realized at runtime and then maintained. The functions by-and-large do not ensure that the vector is sized for a particular n, but instead that they respect whatever n ends up being true.