2 ms·
> What does the `.` do? Why can't it just be: > move(up) One of the latter pictures shows "swift syntax", so I expect that's that: .up is a shortcut for a
by masklinn 9y ago
> What does the `.` do? Why can't it just be:
> move(up)
One of the latter pictures shows "swift syntax", so I expect that's that: .up is a shortcut for a variant in a sum type, as it is in Swift.
- Jtsummers 9y agoNot knowing Swift, I would've guessed something similar. But that hardly makes it a suitable language to dump on kids. For an educational language, you need to start off small with intuitively sensible constructs, and build up. You can move towards that syntax, but you can hardly start there. EDIT: Actually, I'm going to make a stronger statement. You shouldn't make an educational video game, and particularly an educational programming game, until you've read Mindstorms and learned what Papert and others studied last century.