ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
Guest41613 has quit [Ping timeout: 276 seconds]
olbat[m] has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Ping timeout: 246 seconds]
sp4rrow has joined #crystal-lang
sp4rrow_ has joined #crystal-lang
sp4rrow_ has quit [Client Quit]
sp4rrow has quit [Ping timeout: 258 seconds]
sp4rrow has joined #crystal-lang
olbat[m] has joined #crystal-lang
sz0 has joined #crystal-lang
<bmcginty> Is there a way to get a list of any objects crystal creates, as well as a list of the objects it deletes before they are deleted? I'm trying to track down a memory leak, and it'd be way easier if I could see which objects where hanging around between gc.collect calls.
greengriminal has quit [Quit: This computer has gone to sleep]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
Renich[m] has joined #crystal-lang
thelonelyghost has joined #crystal-lang
braidn[m] has joined #crystal-lang
byteflame has joined #crystal-lang
vegai has joined #crystal-lang
TheGillies has joined #crystal-lang
rizo[m] has joined #crystal-lang
jplatte has joined #crystal-lang
watzon has joined #crystal-lang
sija[m] has joined #crystal-lang
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #crystal-lang
snsei has joined #crystal-lang
sz0 has quit [Quit: ZNC - http://znc.in]
sz0 has joined #crystal-lang
alibby has joined #crystal-lang
alibby has quit [Quit: Leaving.]
alibby has joined #crystal-lang
sp4rrow has joined #crystal-lang
alibby has quit [Quit: Leaving.]
alibby has joined #crystal-lang
hightower3 has joined #crystal-lang
sz0 has quit [Quit: ZNC - http://znc.in]
hightower2 has quit [Ping timeout: 246 seconds]
sz0 has joined #crystal-lang
alibby has quit [Quit: Leaving.]
_whitelogger has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<FromGitter> <fridgerator> @sdogruyol when will the results form the survey be available?
snsei has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Client Quit]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 246 seconds]
* byteflame sent a long message: byteflame_2017-08-13_05:43:20.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/zsewrBvfTfvouCpNDBYiuwaa>
<byteflame> Whoops, the first line in `request` should be `req = HTTP::Request.new method, path, headers, body`
<FromGitter> <Qwerp-Derp> I'm thinking of making a YAML-based GUI library as a binding for CrSFML, is this a good idea?
<FromGitter> <Qwerp-Derp> So you write YAML and stuff for making your GUI, instead of loads of function calls
<FromGitter> <Qwerp-Derp> I'm not sure if this would be a good idea, but eh
<watzon> Querp-Derp: This is probably the one and only instance where I would suggest using XML, but something like that is definitely needed. No one wants to code all of that sh** by hand
<watzon> Qwerp-Derp *
<watzon> Wtf phone
<watzon> I give up
<FromGitter> <Qwerp-Derp> ```RenderWindow: ⏎ name: window ⏎ dimensions: [800, 600]``` [https://gitter.im/crystal-lang/crystal?at=598ff30380d90ca024f37196]
<FromGitter> <Qwerp-Derp> Maybe something like this?
<FromGitter> <Qwerp-Derp> I can't really think of good syntax
<watzon> I guess something like that could work out. Either way, as long as I don’t have to write actual code to make a button. I mean come on
<FromGitter> <Qwerp-Derp> My plan is you write a Button class with all of the commands and stuff in it
<FromGitter> <Qwerp-Derp> And then you write how it's going to be laid out using something like YAML
<watzon> Rust actually has a plethora of GUI API wrappers, but I don’t think I’ve seen one yet that allows the use of XML or anything else to abstract away the actual design portion
<FromGitter> <Qwerp-Derp> I can't really think of a good syntax though
<watzon> Take a look at android layouts and just translate the xml to yaml https://developer.android.com/guide/topics/ui/declaring-layout.html
<watzon> That should at least give you a starting point
<watzon> I still think XML might be better fitted to this use case though, I’m not sure if YAML is flexible enough
<FromGitter> <Qwerp-Derp> Hmmmmm
<FromGitter> <Qwerp-Derp> I wanted to reflect the whitespace-sensitive syntax of Crystal and Ruby, XML seems less user-friendly
<watzon> You could alway write your own DSL or parser
<watzon> Might be a little more work, but it could be a fun project
<watzon> Not saying YAML won’t work of course, but I don’t know how well a UI in YAML will do
<FromGitter> <Qwerp-Derp> Can't I just use Crystal's YAML parser?
<FromGitter> <Qwerp-Derp> I wish there was a PEG parser in Crystal... :(
Guest41613 has joined #crystal-lang
<watzon> Either way good luck. Should be a fun project
<FromGitter> <Qwerp-Derp> :) It's a stepping stone to a bigger project
<watzon> What GUI framework are you going to be generating code for though? Crystal is lacking in those right now
<FromGitter> <Qwerp-Derp> Probably CrSFML
<FromGitter> <Qwerp-Derp> It's not suited for the task, but it's the most developed library out there
<FromGitter> <Qwerp-Derp> For putting stuff on a screen :P
<watzon> Yeah we could use some others for sure
<watzon> It’s just a lot of work
<FromGitter> <Qwerp-Derp> Definitely
<watzon> Even GTK would be great
<FromGitter> <Qwerp-Derp> Isn't there `crystal_gobject`?
<FromGitter> <bararchy> I know someone is working on QT , not sure at what stage the project is in though
<FromGitter> <Qwerp-Derp> Do you have a link to the repo?
<watzon> Is there someone actually working on it?
<FromGitter> <bararchy> Oh, btw : https://github.com/Fusion/libui.cr
<FromGitter> <Qwerp-Derp> @bararchy That's dead, isn't it?
<FromGitter> <Qwerp-Derp> The user hasn't been on for 4 months
<FromGitter> <bararchy> So ? maybe no new needs or something
<FromGitter> <bararchy> sometimes people will move on if there is no need from the comunity
<FromGitter> <bararchy> Also: https://github.com/TamasSzekeres/x11-cr
sp4rrow has joined #crystal-lang
sp4rrow has quit [Ping timeout: 246 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
<oprypin> Qwerp-Derp, i personally have always preferred writing guis in code. sometimes you want to customize it based on conditions, or even more frequently add items in a loop. xml abstraction falls apart soooo often
<watzon> oprypin as always you have a good point
<oprypin> and with Crystal being very good at DSLs maybe the advantage is even bigger
<watzon> That's what I'm saying. I think XML would be better than YAML, but a DSL would be better than any other solution really
<oprypin> Qt does it very similarly to yaml fwiw
<oprypin> oh also sfml is absolutely terrible at UI. its abstractions don't help with it at all and perhaps are even harmful. to make good ui out of it you reinvent all the code aside from very basics. and with how annoying crsfml is to install, might as well do it with a different lib
<oprypin> then again, yesterday i happened to write a multiline text editing widget for it
<FromGitter> <bararchy> the libui seems like a simple good chiose no ?
<oprypin> i honestly have no idea. last time i checked the bindings exposed raw lib funcs so i was immediately deterred
<oprypin> Qt is the best, I'm very eager to hear from Papierkorb
<FromGitter> <bararchy> oprypin, do you know if he has a repo up ?
<FromGitter> <bararchy> for QT
<watzon> Are we sure he actually has worked on QT bindings? I know he has `cute`, but that's just "inspired" by QT
<FromGitter> <bararchy> It's seems really early, as in no render to screen functionallity yet
<oprypin> that is not qt bindings
<oprypin> pure Crystal library for event dispatch
<watzon> yup
<oprypin> i don't know the status on the actual qt bindings
_whitelogger has joined #crystal-lang
hightower3 has quit [Ping timeout: 260 seconds]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Ping timeout: 246 seconds]
bmcginty has quit [Ping timeout: 248 seconds]
bmcginty has joined #crystal-lang
DTZUZO has joined #crystal-lang
imjustarobot has joined #crystal-lang
<FromGitter> <codenoid> cool https://github.com/TamasSzekeres/x11-cr
<oprypin> i dont see any use of that
<RX14> i should bind writev
<FromGitter> <LuckyChicken91_twitter> why do you not see any use of that
thews has quit [Ping timeout: 240 seconds]
<oprypin> why write something that will only work on some Linux distributions
<RX14> is it just me or are github notifications beig weird?
thews has joined #crystal-lang
<RX14> I got a notification for #4824 but nothing changed
<FromGitter> <LuckyChicken91_twitter> oh i didnt knewed that its just working on some linux distribution
<FromGitter> <bararchy> @LuckyChicken91_twitter It's X-Server binding , so only work on stuff that uses x-server, which is most of the Linux distrebutions, and those running weston usually support x11 overlay
greengriminal has joined #crystal-lang
<oprypin> so um Python has this neat convention where you write a module and it's meant to be used elsewhere but if you execute that module directly you get some tiny demo of it. i can't seem to find anything similar in Crystal
<FromGitter> <LuckyChicken91_twitter> and x11 acts also really complicated
Guest41613 is now known as alex``
alex`` has quit [Quit: WeeChat 1.9]
sp4rrow has joined #crystal-lang
sp4rrow has quit [Ping timeout: 246 seconds]
alibby has joined #crystal-lang
<FromGitter> <LuckyChicken91_twitter> is someone having a idea for an useful method?
greengriminal has quit [Quit: Leaving]
<FromGitter> <Qwerp-Derp> This sounds ambitious, but my plans for SFML stuff aren't good, so I'm turning to make bindings for GTK
<FromGitter> <Qwerp-Derp> Hopefully this will work
<FromGitter> <LuckyChicken91_twitter> yes i also hope that this will work
<FromGitter> <sdogruyol> Hey everyone
<FromGitter> <Qwerp-Derp> Hey @sdogruyol!
<FromGitter> <LuckyChicken91_twitter> hello
<FromGitter> <sdogruyol> how are you everyone
<FromGitter> <bararchy> Hi :) @sdogruyol
<FromGitter> <sdogruyol> hey @bararchy
<FromGitter> <LuckyChicken91_twitter> im good
sp4rrow has joined #crystal-lang
<FromGitter> <sdogruyol> that's good to hear @LuckyChicken91_twitter
<FromGitter> <sdogruyol> hey @Qwerp-Derp
<FromGitter> <LuckyChicken91_twitter> and how are you?
<FromGitter> <sdogruyol> doing good, just got back from a long vacation
<FromGitter> <sdogruyol> catching up with all Crystal lovers around the world <3
<FromGitter> <LuckyChicken91_twitter> oh thats nice
sp4rrow has quit [Ping timeout: 246 seconds]
imjustarobot has quit [Quit: Page closed]
<watzon> sdogruyol how’s it going? We still need to figure out that podcast
<FromGitter> <sdogruyol> going great @watzon 👍
<watzon> Good to hear 😁
<watzon> Well... read
sp4rrow has joined #crystal-lang
sp4rrow has quit [Ping timeout: 255 seconds]
alex` has joined #crystal-lang
alex` is now known as Guest53406
Philpax_ has quit [Ping timeout: 248 seconds]
HTTP_____GK1wmSU has joined #crystal-lang
snsei has joined #crystal-lang
HTTP_____GK1wmSU has left #crystal-lang [#crystal-lang]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<FromGitter> <krypton97> how stable is kemal in production :) ?
<watzon> That is a question for sdogruyol, the Kemal man himself
<FromGitter> <GetRektByMe> @sdogruyol
Guest53406 has quit [Quit: WeeChat 1.9]
<FromGitter> <GetRektByMe> Also I think the company he works for does use Kemal in production
brycek has joined #crystal-lang
<FromGitter> <krypton97> Yeah, I heard for it
<FromGitter> <krypton97> But I'm also looking to include authentication, graphql and database connection
<FromGitter> <GetRektByMe> Database connection wouldn't be too hard since there's Crecto
<FromGitter> <krypton97> The graphql api could be done with Go as well, but wanna stick with crystal
<FromGitter> <GetRektByMe> I'm not entirely sure if there's a GraphQL client/server in Crystal though
<FromGitter> <krypton97> Does it work with psql?
<FromGitter> <krypton97> Never heard of creto
<FromGitter> <GetRektByMe> Crecto does yeah
<watzon> Yes
<watzon> Crecto is probably the best ORM that Crystal has right now
<FromGitter> <krypton97> couldn't find it on awesome go
<watzon> Awesome Go wouldn’t have Crecto 😑
<FromGitter> <GetRektByMe> Crecto is Crystal not Golang lol
<watzon> Awesome Crystal would
<watzon> 😂
<watzon> Crystal > Go
<FromGitter> <GetRektByMe> I'd get you a link for it but I'm at work atm rip
<watzon> Never fear
<FromGitter> <GetRektByMe> I started to write something with it at https://github.com/WeebWare/Weebsite but realised 🤔 I don't actually know what it would be or why it would need a JSON API
<FromGitter> <GetRektByMe> So I stopped writing it lol
<FromGitter> <GetRektByMe> What is the go-to lib for cryptography?
<FromGitter> <LuckyChicken91_twitter> hello why is my sort-all-needless-spaces-out-program not working? https://carc.in/#/r/2isy/edit
<FromGitter> <GetRektByMe> Can you specify a bit more? What about it isn't working
<FromGitter> <LuckyChicken91_twitter> its making not what it should do
<FromGitter> <LuckyChicken91_twitter> look at the program. I maked comments
<watzon> Just use regex?
<FromGitter> <LuckyChicken91_twitter> i never used regex
alex` has joined #crystal-lang
alex` is now known as Guest10468
<watzon> Give me a second
<watzon> I’ll get you an example
<FromGitter> <LuckyChicken91_twitter> ok
* watzon sent a long message: watzon_2017-08-13_15:44:09.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/cxzQkJnBRAzBYNurIGQqBCYb>
<watzon> Wait a sec
w-p has quit [Ping timeout: 258 seconds]
<watzon> Forgot gsub is non-destructive
w-p has joined #crystal-lang
<FromGitter> <sdogruyol> @krypton97 it's pretty much stable
<FromGitter> <sdogruyol> also a graphql implementation https://github.com/ziprandom/graphql-crystal @krypton97
<FromGitter> <krypton97> nice!
<watzon> Did that help LuckyChicken91_twitter
<watzon> ?
sp4rrow has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
sp4rrow has quit [Ping timeout: 246 seconds]
<oprypin> could also use `.split().join(" ")`
<oprypin> LuckyChicken91_twitter, the problem with your code is that when you modify the string, all the indices of the following characters shift to the left, so you end up deleting the wrong things afterwards
<oprypin> LuckyChicken91_twitter, https://carc.in/#/r/2itc
<FromGitter> <LuckyChicken91_twitter> oh so the problem was the deleting
* watzon sent a long message: watzon_2017-08-13_16:18:43.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/SfpTpcSKHWMTbvbvFXEyZPTg>
<oprypin> watzon, could you not do this
<oprypin> "sent a long message: watzon_2017-08-13_16:18:43.txt"
<watzon> Oops haha
<watzon> I didn't know Riot would do that
<oprypin> how can they make it worse than my bot, at least it shows a summary
<oprypin> watzon, it's matrix doing it
<oprypin> so uh what do you know, multiline IRC messages don't magically work after all
<watzon> Sad face
<FromGitter> <krypton97> Everything looks good, thanks guys!
<oprypin> and for this matter - https://bpaste.net https://gist.github.com
<FromGitter> <krypton97> Just saw I've types awesome go haha x)
<FromGitter> <krypton97> typed*
<watzon> Lol don't know why I din't think of doing a gist
<watzon> 🤦🏻
<watzon> How do emojis look in irc?
<oprypin> as characters, so relying on your unicode font support
<brycek> anyone ever mess with crystal on arm-none-eabi?
<watzon> I don't think crystal compiles to arm rn
<brycek> as far as my noodling with it goes, it seems like it wants dynamic linking and i'm not sure how big the stdlib would be if linking statically
<brycek> i see notes about it working armhf-linux
<watzon> Well maybe I’m wrong then haha
<brycek> well it's a fair point, armhf isn't arm
<brycek> (the "hf" means hardware floating point)
<brycek> and the existing stuff presumes an OS and files and other things arm-none-eabi doesn't have
<RX14> brycek, i think arm should work with hf or not
<RX14> the issue is the none eabi
<RX14> if you have no os you cannot use the stdlib
<RX14> the stdlib requires a libc and a libc requires an OS
<brycek> or just jamming the parts of libc you use into the blob :/
<RX14> and what is libc going to syscall with no os?
<RX14> strace an empty crystal program
<RX14> you will not find the result empty
sp4rrow has joined #crystal-lang
sp4rrow has quit [Ping timeout: 276 seconds]
<brycek> it'd do what the os does: write to memory mapped to periphs or special registers
<RX14> you expect the linux libc to automatically do what the OS does without an OS?
<RX14> if you want something to do what the OS does, write an OS
<brycek> ain't my first rodeo, i've done embedded and other no-os stuff before, just wondering if anyone else had with crystal or if it'd be a lot of new work/resarch/etc.
<FromGitter> <bararchy> brycek: https://github.com/TheKernelCorp/NuummiteOS
<brycek> ooh fancy
<RX14> brycek, oh sorry, i thought you were the same guy from yesterday so I didn't explain much at all
<brycek> ah
<RX14> the hard part of starting crystal with no stdlib is that you need to placacte the compiler
<RX14> the crystal compiler is hugely related to the current stdlib
<RX14> there's no official API
<RX14> the compiler just constructs calls to things which it expects to exist
<RX14> because we have quite a bit of syntax sugar
<RX14> unfortunately when writing a crystal OS you need to deal with that and work out which methods you need to stub out
<RX14> so while Nuumite is an x86 OS, it will likely be a really good resource because much of it isn't architecture specific, it's crystal specific
sp4rrow has joined #crystal-lang
sp4rrow has quit [Ping timeout: 276 seconds]
<FromGitter> <bararchy> There's also this: https://github.com/lbguilherme/os-crystal
<FromGitter> <bararchy> There was another project, can't remmber the name
<FromGitter> <krypton97> does kemal support template engines?
<watzon> You can also create a custom middleware if you want to use an engine other than ECR http://kemalcr.com/docs/middlewares/
<FromGitter> <krypton97> thanks, works like a charm!
<FromGitter> <kazzkiq> How the heck am I suppose to connect to MySQL with password?
<FromGitter> <fridgerator> mysql://user:password@host:port/database_name
<FromGitter> <kazzkiq> tried that. failed miserably
<FromGitter> <fridgerator> well thats how you do it
<FromGitter> <fridgerator> does your password have special characters?
<FromGitter> <kazzkiq> ```No address found for sample123password&#64;127.0.0.1:3310 over TCP &#40;Socket::Error&#41;``` [https://gitter.im/crystal-lang/crystal?at=5990a9ecee5c9a4c5fb8b8dd]
<FromGitter> <kazzkiq> Before using password, it worked like a charm.
<watzon> Looks like the @ is being escaped
<Papierkorb> not to mention the missing colon
<watzon> That too
<FromGitter> <kazzkiq> Colon?
<watzon> Between the username and password
<FromGitter> <fridgerator> its in the `CONNECTION` variable, but no in the error
<watzon> Weird
<watzon> Upload your code as a gist or something
<FromGitter> <jwoertink> Anyone here using micrate?
<FromGitter> <jwoertink> I just tried installing from using `brew tap` and `brew install` and I get the `dyld: Library not loaded: /usr/local/opt/libevent/lib/libevent-2.0.5.dylib` error when running
<FromGitter> <kazzkiq> Found the error, my password had an "at" (`@`), which was conflicting with the syntax from the connection. Even by trying to escape the "@" in the password, the error was still happening.
<FromGitter> <jwoertink> using the latest crystal
<FromGitter> <kazzkiq> Removing this character solved the problem.
<FromGitter> <krypton97>  crystal run src/app.cr ⏎ Error in src/app.cr:3: while requiring "kemal-session-redis": can't find file 'kemal-session-redis' relative to '/home/alex/Projects/Crystal/app/src' ⏎ ⏎ require "kemal-session-redis" [https://gitter.im/crystal-lang/crystal?at=5990af12210ac269207d1148]
<FromGitter> <krypton97> I've installed the dependency
sp4rrow has joined #crystal-lang
<FromGitter> <fridgerator> @jwoertink yes I usually end up having to symlink different libevent in its place
balduin has joined #crystal-lang
<FromGitter> <jwoertink> I was hoping to just hop in and start cranking stuff out.
<FromGitter> <fridgerator> `ln -s /usr/local/opt/libevent/lib/libevent-2.1.6.dylib /usr/local/opt/libevent/lib/libevent-2.0.5.dylib`
<FromGitter> <fridgerator> works for me
<FromGitter> <jwoertink> Thanks. I ended up just making a bin/micrate with the API and using it that way. Seems to be working
sz0 has joined #crystal-lang
<FromGitter> <krypton97> How can I parse a form with Kemal?
<FromGitter> <johnjansen> @krypton97 https://crystal-lang.org/api/0.23.1/HTTP/FormData.html
<FromGitter> <krypton97> I've read that, thanks. I was actually wondering to do it the kemal way
<FromGitter> <johnjansen> kemal is built on top of the stdlib http stuff .. and provides a dsl for routing etc … ill look at the kemal code, but im sure @sdogruyol will defer things like this to the stdlib
<FromGitter> <krypton97> nice
<FromGitter> <johnjansen> wait, it looks like kemal handles this
<FromGitter> <johnjansen> @krypton97
<FromGitter> <krypton97> hm, I was trying this
<FromGitter> <krypton97> params = ctx.request.body ⏎ ctx.response.print params["email"]
<FromGitter> <krypton97> and got #
<FromGitter> <krypton97> I mean params only
<FromGitter> <krypton97> not params["email"]
alibby has quit [Read error: No route to host]
alibby has joined #crystal-lang
<FromGitter> <johnjansen> was it a `application/x-www-form-urlencoded`
<FromGitter> <krypton97> <form action="/users/signup" method="post"> ⏎ <div class="form-group"> ⏎ <label>Username</label> ⏎ <input type="text" class="form-control" name="username"> ⏎ </div> ... [https://gitter.im/crystal-lang/crystal?at=5990c5a52723db8d5e9e9d01]
<FromGitter> <krypton97> Just a simple form
<Papierkorb> ... I got the compiler to compile `args = [ ]` and then throw an runtime exception
<Papierkorb> That's a new creative one
<FromGitter> <krypton97> It has to be args = [] of type
<Papierkorb> Sure. The point is that that shouldn't even compile in the first place.
<FromGitter> <krypton97> Still beta..
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<FromGitter> <krypton97> Huston, we have a problem..
<crystal-gh> [crystal] ysbaddaden pushed 1 new commit to master: https://git.io/v7Q0Y
<crystal-gh> crystal/master 8de1d8e Sijawusz Pur Rahnama: Implemented yielding Dir.each_child (#4811)...
<travis-ci> crystal-lang/crystal#8de1d8e (master - Implemented yielding Dir.each_child (#4811)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/264182279
<travis-ci> crystal-lang/crystal#8de1d8e (master - Implemented yielding Dir.each_child (#4811)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/264182279
<travis-ci> crystal-lang/crystal#8de1d8e (master - Implemented yielding Dir.each_child (#4811)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/264182279
hightower2 has joined #crystal-lang
<Papierkorb> `struct Foo; YAML.mapping(bar: String?); end; Foo.from_yaml(%<bar: "# I'm not a comment">)` Kaboom.
<Papierkorb> Union(String | Nil).from_yaml will pull the "next thing" (#read_raw), and then call String.from_yaml(that_thing), which now redoes the cycle and expects a YAML document. And now that_thing suddenly becomes a true comment.
sp4rrow has joined #crystal-lang
Guest10468 has quit [Quit: WeeChat 1.9]
<Papierkorb> (yadda use `nilable`)
<crystal-gh> [crystal] RX14 closed pull request #4824: Remove bare array creation from multi assign (master...feature/remove_auto_array) https://git.io/v7HmR
<travis-ci> crystal-lang/crystal#c0ce114 (master - Remove bare array creation from multi assign (#4824)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/264191591
<travis-ci> crystal-lang/crystal#c0ce114 (master - Remove bare array creation from multi assign (#4824)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/264191591