user put args was getting the command line arguments, random state was making the random seed, roller user put is executing the roller function with the input as user put. When we get into the roller function, the name of user put changes to num, because that's the argument I put for roller, I don't know why I did that, I guess one does it. And then p print random parse-integer int 0 num, that's just parsing stuff and converting it to, or using it as an argument. And that's how that was executed in Common Lisp. In Guile, it is, I guess technically I'm looking at the line count, it looks like it's longer in Guile, but I guess you might be able to argue that it's a little bit more elegant, I'm not sure actually. Anyway, let's do this. So the first line we know, shebang slash user bin guile dash e main dash s shebang, or bang she. So that's dash e as in echo, main dash s as in Sierra. What that does, apparently, is it creates, it allows Guile access to the command line arguments received (29/55)
You are viewing a single comment's thread from: