hoshom
2019-3-2 10:59:34

Is there any way of saying in typed racket “This function returns a String if the first argument is #t and Symbol if it’s #f”


hoshom
2019-3-2 11:45:19

… though I’ve started to think that kind of a function is usually a bad idea anyway. Better to have two functions. No reason not to make them especially when macros make it so easy to do so.


notjack
2019-3-2 11:47:02

@hoshom definitely agree that kind of function sounds not so useful


notjack
2019-3-2 11:47:34

difficult to use


samth
2019-3-2 14:33:15

@hoshom yes, you can use case-> for that


hoshom
2019-3-2 16:52:48

@samth you’re right, thanks… I did check for that before asking but at the time I must’ve been doing something wrong, I tried making a minimal example again just now and it works just fine


ehaney
2019-3-2 18:58:44

@ehaney has joined the channel


soegaard2
2019-3-2 20:19:53

I don’t get this. Sorting racket language repositories at Github after “Recently Updated” gets this:



soegaard2
2019-3-2 20:20:23

The first on the list was updated sep 2018.


gfb
2019-3-2 20:49:23

click the little circled "?" : there were too many results so some are not included


soegaard2
2019-3-2 20:54:19

I suppose that’s positive (too many recent updates), but horrible user experience.


githree
2019-3-2 21:30:58

@soegaard2 true, I personally use pushed:>2018-12-31 like so https://github.com/search?q=language%3ARacket+pushed%3A%3E2018-12-31&type=Repositories


soegaard2
2019-3-2 22:17:20

@githree Nice tip.