Type, contract Flashcards

1
Q

dynamisch getypte Sprachen

A

lang racket

(provide
(contract-out
[rest-after ( -> number? (list-of Number?) (List-of Number?))]))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Statisch getypte Sprachen

A

( : rest-after ( -> Integer (List-of Integer) (List-of Integer)))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

define Typ

A

(define-type Expression
(literal (value number?)
(addition (left Expression?) (right Expression?)))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly