[racket] init and init-field

From: Asumu Takikawa (asumu at ccs.neu.edu)
Date: Wed Jan 9 16:37:17 EST 2013

On 2013-01-09 14:20:27 -0500, Harry Spier wrote:
> Can someone give me an example where its necessary (or even better) to
> use "init" instead of "init-field"

Fields are always public unless you use `define-local-member-name`, so
if you don't want to expose your state you are better off with the
internal definition (which is private). There may be other reasons too.

Cheers,
Asumu

Posted on the users mailing list.