dmitryhertz
2018-3-25 13:36:46

Hello everyone!


dmitryhertz
2018-3-25 13:39:28

Ah, ok. I just wanted to ask about the scribble support in Emacs, does it exist or not. But suddenly I found a package on github emacs-pe/scribble-mode.


soegaard2
2018-3-25 17:21:07

I have small problem. In DrRacket I can import special? from scribble/text/output like so: (require (only-in scribble/text/output special?))


soegaard2
2018-3-25 17:21:39

That works in racket 6.7, but has stopped working in 6.12.


soegaard2
2018-3-25 17:22:20

As far as I can tell, there have been no changes to that file recently: https://github.com/racket/scribble/commits/master/scribble-text-lib/scribble/text/output.rkt


soegaard2
2018-3-25 17:24:29

Oh! I am blind! There is a #; before the recursive contract. That means special? is no longer exported :disappointed:


soegaard2
2018-3-25 17:33:46

Hmm. I need special? to test for entities such as nbsp and others.


dmitryhertz
2018-3-25 18:43:45

Is there a possibility to use optional arguments in Typed Racket?


dedbox
2018-3-25 18:51:21

@dmitryhertz In Haskell, I’d use Maybe. There’s an Option type in the TR reference that looks equivalent, as long as the argument is never #f when present.


dedbox
2018-3-25 18:56:56

Sorry, I’ve been reading too many papers on algebraic data types. The idiomatic TR way is to use the ->* type constructor, I believe.


dedbox
2018-3-25 18:57:30

(section 4.3 in the Type Racket Guide)


dmitryhertz
2018-3-25 18:58:15

¡Gracias amigo!) I’ll take a look the section right now! @dedbox thank you again! )


dmitryhertz
2018-3-25 19:29:33

@dedbox thank you! I spent some time in struggling with the type-checker but finally it works well as expected )