<twobitsprite>
If I want a reference to a list of ints... is it "ref int list" or "int list ref"?
<twobitsprite>
or something else entirely, like "ref (int list)"
<discocaml>
<Kali> type constructors are applied postfix, so the 2nd option
<twobitsprite>
"int list ref"?
<discocaml>
<Kali> indeed
<twobitsprite>
cool
<discocaml>
<Kali> `type 'a ref = { mutable contents : 'a }`
<twobitsprite>
I mean, more like << type t = { layers: Layer.t list ref; } >> so that the entire list of Layer.t's can be replaced in case I need to insert a new list item
<discocaml>
<Kali> yeah, i was just quoting the definition of 'a ref
<twobitsprite>
ah, ok
<discocaml>
<Kali> it is just a normal type
<discocaml>
<Kali> nothing special about it
Tuplanolla has quit [Quit: Leaving.]
bibi_ has joined #ocaml
<twobitsprite>
If you all wanted a 2D, tile-based game engine that used a scripting language for game logic, what scripting language would you prefer? I'm looking at embedding Guile, but Lua is also popular...
<discocaml>
<Kali> lua is much more popular for game scripting than scheme, so it is very likely to be familiar to the kind of people who script games
<discocaml>
<Kali> i can name immediately name 4 games that use lua scripting (the computercraft mod, roblox, world of warcraft, the powder toy) but i don't think i've ever seen a scheme one
<companion_cube>
Just use Godot, it already has a scripting language :p
mbuf has joined #ocaml
<twobitsprite>
that's not fun
<discocaml>
<Kali> does godot have ocaml bindings? i know it has rust ones
<twobitsprite>
I just searched and didn't find any
<discocaml>
<Kali> oh, it seems like godotcaml now exists as of very recent
alexherbo2 has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
tremon has joined #ocaml
<discocaml>
<anmonteiro> Btw dune’s test suite is pretty comprehensive and usually has very minimal examples about its features. Maybe that helps next time you’re looking for a feature
<discocaml>
<anmonteiro> Ideally the docs would be a bit better and provide more examples — I believe that’s being worked on
<companion_cube>
🙏
waleee has joined #ocaml
bibi_ has joined #ocaml
YuGiOhJCJ has joined #ocaml
alexherbo2 has joined #ocaml
Serpent7776 has quit [Ping timeout: 248 seconds]
chiselfuse has quit [Remote host closed the connection]
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #ocaml
chiselfuse has joined #ocaml
ygrek has quit [Remote host closed the connection]
tremon has quit [Quit: getting boxed in]
bartholin has quit [Quit: Leaving]
alexherbo2 has quit [Remote host closed the connection]