<FromGitter>
<Blacksmoke16> syntax is ruby like, but compiled and statically typed. Id say with a focus on web dev, just because that part has the larger ecosystem atm
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<hightower2>
looks pretty useful naqvis
<hightower2>
See if you can get Crystal mentioned in the list of bindings on https://www.libvips.org/ :-)
<FromGitter>
<naqvis> yeah, will raise an issue there to see what process they follow to get bindings added to their docs
notzmv has joined #crystal-lang
jmiven has joined #crystal-lang
onyx has joined #crystal-lang
<riza>
@naqvis thats excellent! <3
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<FromGitter>
<naqvis> thanks
<yxhuvud>
2k lines of lib bindings. Did you write it all yourself or did you use some tool to generate it?
<riza>
I wasn't going to ask
<riza>
I looked at building bindings for libvips and quickly decided I didn't have the experience in automation to make that happen
jmdaemon has joined #crystal-lang
_ht has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 240 seconds]
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #crystal-lang
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
bastienleonard has joined #crystal-lang
<bastienleonard>
hi, is there a way to require the caller to use the value returned by a function (at compile-time)? A compiler warning would be OK if an error is not possible.
<FromGitter>
<Blacksmoke16> got an example?
<bastienleonard>
my use case is for "monadic" error handling, like Result in Ocaml/Rust
<bastienleonard>
I want the compiler to tell me if I'm discarding some returned values
<FromGitter>
<Blacksmoke16> pretty sure thats not a thing
<bastienleonard>
I mean, the return value of some methods
<FromGitter>
<Blacksmoke16> ```some_method```
<FromGitter>
<Blacksmoke16> by default there isnt a way to say like "you should not ignore the return values of 'some_method'"
<bastienleonard>
thanks for confirming
<bastienleonard>
I wonder if there is some macro hack for this. I haven't looked into Crystal macros yet
<FromGitter>
<Blacksmoke16> not sure, never really had a need for this
<bastienleonard>
alright thanks. Going to stick to exceptions for this use case for now. I do find it convenient to require the caller to handle errors sometimes.