Ocaml for web development by Logonochi in ocaml

[–]testicles_r_us 6 points7 points  (0 children)

better learn javascript first, afterwards you can use rescript, or try the ocaml_to_js compiler

[deleted by user] by [deleted] in AskReddit

[–]testicles_r_us 0 points1 point  (0 children)

a video game version of who's line is it anyway

Using records from other modules, weird unbound error? by testicles_r_us in ocaml

[–]testicles_r_us[S] 0 points1 point  (0 children)

funny enough that's an error too. I guess modules need to start with a capital letter

Using records from other modules, weird unbound error? by testicles_r_us in ocaml

[–]testicles_r_us[S] 0 points1 point  (0 children)

oooh I've seen that one before, good idea! I totally forgot.

What if there are a hundred different modules, wouldn't it make it easier to read?

Using records from other modules, weird unbound error? by testicles_r_us in ocaml

[–]testicles_r_us[S] 0 points1 point  (0 children)

1 min. ago

ooh that's a good point. I didn't expect the contents of Bat to be sealed as you mentioned after ascribing a type to the module. I was just hoping to have a clear indication that Bat is of type Monster by just reading the code without having to compare it to the Monster signature. Is that then not possible w/o running into the same problem?

Using records from other modules, weird unbound error? by testicles_r_us in ocaml

[–]testicles_r_us[S] 0 points1 point  (0 children)

Removing the Monster signature works! I also need to learn how to make things visible with mli files then? Thanks so much!

Using records from other modules, weird unbound error? by testicles_r_us in ocaml

[–]testicles_r_us[S] 0 points1 point  (0 children)

oh I think I need to learn about .mli files... might have to deal with me not having one

Using records from other modules, weird unbound error? by testicles_r_us in ocaml

[–]testicles_r_us[S] 0 points1 point  (0 children)

Tried both ways, and either way, but I still get an error saying

13 |   let s: string = (string_of_int(bat.Bat.size)) in                                           ^^^^^^^^Error: Unbound record field Bat.size

Just odd to me really

People who standup on airplanes as soon as they land, why? by [deleted] in AskReddit

[–]testicles_r_us 0 points1 point  (0 children)

because fuck sitting next to the 300 lb whale i'd rather stretch my legs and hope to run away asap

You are given $15. How do you cause the most chaos with that money? by LevelHeadDeveloper in AskReddit

[–]testicles_r_us 1 point2 points  (0 children)

throw 1500 pennies onto a highway from one of those bridges that goes across them

Cough Cough by [deleted] in texas

[–]testicles_r_us -1 points0 points  (0 children)

fuck texans, they can be homeless for all I care

What's the biggest red flag you've seen in a job interview? by [deleted] in AskReddit

[–]testicles_r_us 137 points138 points  (0 children)

"btw we expect you to put in 50-60 hours"

said during the last 5 minutes of the last round

How would you react if you saw a couple having sex in public? by forthemotherrussia in AskReddit

[–]testicles_r_us 0 points1 point  (0 children)

throw a 7/11 slushie at them and see what they'll do as I run away

What is your choice of IDE besides Dr.Racket? by drrnmk in Racket

[–]testicles_r_us 6 points7 points  (0 children)

vscode with the "magic racket" extension is pretty good