companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
ygrek has joined #ocaml
mange has joined #ocaml
<dh`> those seem to be mostly workarounds for missing language features in java
<dh`> (there's a truism to that effect about design patterns)
ygrek has quit [Remote host closed the connection]
aztex has quit [Quit: Client closed]
<companion_cube> @smondet yeah, then use Caml for 10 years and realize that OOP is genuinely useful for the 5% where objects are good :D
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
aztex has joined #ocaml
aztex has quit [Client Quit]
Tuplanolla has quit [Quit: Leaving.]
alexherbo2 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
<discocaml> <deepspacejohn> it recently occurred to me, is oop used for anything at all in the stdlib?
<companion_cube> I don't think so?
<discocaml> <yawaramin> well, there's the `Oo` module
<companion_cube> I've never used that one :DD
<companion_cube> but really that's a support module, nothing in the stdlib _relies_ on OO
<companion_cube> maybe for bootstrapping reasons, I'm not entirely sure
Haudegen has quit [Quit: Bin weg.]
dmoerner has quit [Ping timeout: 272 seconds]
dmoerner has joined #ocaml
spynxic has quit [Ping timeout: 244 seconds]
spynx has joined #ocaml
spynx has quit [Ping timeout: 260 seconds]
myrkraverk__ has quit [Read error: Connection reset by peer]
myrkraverk__ has joined #ocaml
spynxic has joined #ocaml
spynxic has quit [Ping timeout: 276 seconds]
spynxic has joined #ocaml
matsurago has joined #ocaml
<matsurago> hi, just wanted to try OCaml on Windows, but I had to interrupt 'opam init' at some point. After restart, the init command doesn't understand it was interrupted and proceeds to next step (which ofc fails). Any advice how to restart opam init from scratch?
dmoerner has quit [Ping timeout: 252 seconds]
dmoerner has joined #ocaml
Guest41 has joined #ocaml
esum has quit [Ping timeout: 246 seconds]
<Guest41> Hi, I have learned about variant types and they seem useful for picking "one out of" a bunch of values. e.g. `type weekday = Monday | Tuesday | ...`. Is there a built-in feature that allows me to create variables that pick _multiple_ out of a bunch of values (without making some sort of Set of weekdays, etc.).?
<dh`> there is not, afaik
<dh`> you could make a sum of all the legal combinations but that is nasty to write down and nasty to work with
<dh`> there might be some kind of ppx thing to generate that for you but probably you just want a Set
<dh`> matsurago: easiest is to just delete whatever the windows equivalent of ~/.opam is and start over
<Guest41> Good to know, thanks!
buoy49__ has quit [Ping timeout: 248 seconds]
Boarders_____ has quit [Read error: Connection reset by peer]
jyc has quit [Read error: Connection reset by peer]
nirvdrum1 has joined #ocaml
Boarders_____ has joined #ocaml
jyc has joined #ocaml
delyan_ has quit [Ping timeout: 246 seconds]
grobe0ba has quit [Ping timeout: 246 seconds]
delyan_ has joined #ocaml
buoy49__ has joined #ocaml
nirvdrum has quit [Ping timeout: 246 seconds]
Ekho has quit [Ping timeout: 246 seconds]
nirvdrum1 is now known as nirvdrum
esum has joined #ocaml
grobe0ba has joined #ocaml
pi3ce has joined #ocaml
pi3ce has quit [Client Quit]
Guest41 has quit [Quit: Client closed]
pi3ce has joined #ocaml
Ekho- has joined #ocaml
<matsurago> dh`: thanks, I think I found an 'opam' folder inside AppData/Local, hope this is it
hsw_ has quit [Quit: Leaving]
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
bartholin has quit [Quit: Leaving]
zenmov has quit [Ping timeout: 252 seconds]
olle has joined #ocaml
Haudegen has joined #ocaml
zenmov has joined #ocaml
alexherbo2 has joined #ocaml
matsurago has quit [Quit: Leaving]
emp has quit [Ping timeout: 260 seconds]
emp has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
mange has quit [Quit: Zzz...]
motherfsck has quit [Ping timeout: 252 seconds]
Haudegen has quit [Quit: Bin weg.]
dh` has quit [Ping timeout: 255 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
motherfsck has joined #ocaml
Haudegen has joined #ocaml
olle has quit [Ping timeout: 245 seconds]
pi3ce has quit [Ping timeout: 260 seconds]
euphores has quit [Quit: Leaving.]
dh` has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
myrkraverk__ has quit [Ping timeout: 248 seconds]
<discocaml> <thearthurm> Well it also depends on how you define oop
<discocaml> <thearthurm> Smalltalk oop is different then simula oop is different than lisp oop
bartholin has joined #ocaml
<discocaml> <mohamed_abdulsalam> have you tried wrapping the command in `dk.Ml use -- env ...`?
Haudegen has joined #ocaml
<discocaml> <yawaramin> maybe polymorphic variants? see eg https://aantron.github.io/dream/#status_codes
<discocaml> <yawaramin> would allow you to do eg `let working = function #weekday -> true | #weekend -> false`
<discocaml> <yawaramin> assuming you have `` type weekday = [`Mon | `Tue | `Wed | `Thu | `Fri] `` and `` type weekend = [`Sat | `Sun] ``
<discocaml> <._null._> (You have to ping with giving the IRC username (Guest14), answers can't go across the bridge)
<discocaml> <._null._> Guest41 * I can't read
rgrinberg has joined #ocaml
ds-ac has quit [Ping timeout: 272 seconds]
ds-ac has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
YuGiOhJCJ has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Tuplanolla has joined #ocaml
rgrinberg has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
bartholin has quit [Quit: Leaving]
mange has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Ping timeout: 248 seconds]
rgrinberg has joined #ocaml