You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/pitfall/restructure/struct.rkt

19 lines
379 B
Racket

#lang restructure/racket
(provide (all-defined-out))
#|
approximates
https://github.com/mbutterick/restructure/blob/master/src/Struct.coffee
|#
(define-subclass RBase (RStruct [fields (mhash)])
(define/override (decode stream parent [length 0])
(unfinished))
(define/override (encode stream val parent)
(unfinished))
)
(make-object RStruct (mhash 'foo "bar"))