jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.4 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
havenwood has joined #crystal-lang
bcardiff has joined #crystal-lang
sardaukar is now known as zz_sardaukar
zz_sardaukar is now known as sardaukar
zipR4ND has joined #crystal-lang
NeverDie has joined #crystal-lang
sardaukar is now known as zz_sardaukar
bcardiff has quit [Quit: bcardiff]
bcardiff has joined #crystal-lang
havenwood has quit [Ping timeout: 246 seconds]
bcardiff has quit [Client Quit]
<crystal-gh> [crystal] MakeNowJust opened pull request #1021: Fix generating the document of VirtualType (master...fix-gen-doc-bug) http://git.io/vmxGl
bcardiff has joined #crystal-lang
zipR4ND has quit [Ping timeout: 264 seconds]
blue_deref has quit [Quit: bbn]
Locke23rus has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
strcmp1 has quit [Quit: Leaving]
nahtnam has quit [Quit: Connection closed for inactivity]
lokulin has quit [Quit: bye!]
lokulin has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
havenwood has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
Ven_ has joined #crystal-lang
BlaXpirit has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Veejay has joined #crystal-lang
Ven has joined #crystal-lang
havenwood has quit [Ping timeout: 256 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
sergey-kucher has joined #crystal-lang
dbackeus has joined #crystal-lang
<dbackeus> how would I declare a hash that could contain any depth of nested (String => String) hashes?
<jhass> >> alias NestedHash = Hash(String => String|NestedHash); hsh = NestedHash.new; hsh["foo"] = {"bar" => {"baz" => "quux"}}
<DeBot> jhass: Syntax error in eval:4: expecting token ')', not '=>' - http://carc.in/#/r/7sh
<jhass> oh
<jhass> >> alias NestedHash = Hash(String, String|NestedHash); hsh = NestedHash.new; hsh["foo"] = {"bar" => {"baz" => "quux"}}
<DeBot> jhass: Sorry, that took too long. - http://carc.in/#/r/7si
<jhass> interesting, it segfaults the latest compiler
<dbackeus> has it ever worked? it times out on 0.6.x on the play-site too
<BlaXpirit> :d
<dbackeus> how does JSON / YAML libs deal with deep nesting?
<jhass> like that :/
<jhass> >> alias NestedHash = String|Hash(String, NestedHash); hsh = NestedHash.new; hsh["foo"] = {"bar" => {"baz" => "quux"}}
<DeBot> jhass: Error in line 4: undefined method 'new' for NestedHash:Class - http://carc.in/#/r/7sl
<jhass> oh, right
<jhass> >> alias NestedHash = Hash(String, NestedHash)|String; hsh = NestedHash.new; hsh["foo"] = {"bar" => {"baz" => "quux"}}
<DeBot> jhass: Error in line 4: undefined method 'new' for NestedHash:Class - http://carc.in/#/r/7sm
<jhass> huh
<jhass> >> alias NestedHash = Hash(String, NestedHash)|String; hsh = Hash(String, NestedHash).new; hsh["foo"] = {"bar" => {"baz" => "quux"}}
<DeBot> jhass: Error in line 4: no overload matches 'Hash(String, NestedHash)#[]=' with types String, Hash(String, Hash(String, String)) - http://carc.in/#/r/7sn
<jhass> okay, I give up
Ven has joined #crystal-lang
dbackeus has quit [Ping timeout: 246 seconds]
strcmp1 has joined #crystal-lang
Locke23rus has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
dbackeus has joined #crystal-lang
asterite_ has joined #crystal-lang
asterite_ has quit [Remote host closed the connection]
<asterite> jhass: http://carc.in/#/r/7st
<asterite> The problem is that each time you create a hash you need to tell that it's recursive :(
<asterite> but this isn't a problem when parsing JSON, because there are only a couple of places you need to do this. Creating them manually is rare
<asterite> Oh, it can be shorter: http://carc.in/#/r/7su
<jhass> dbackeus: ^
<dbackeus> I see...
<dbackeus> I've been contemplating attempting to port Rack over to Crystal, where an app takes a single "env" argument which is basically a recursive hash
<dbackeus> anyone attempt anything similar in crystal yet? does it seem like a feasible/good idea?
<jhass> I do think we need something like Rack, conceptually
<jhass> I'm not sure its API ports well over
<jhass> we should also see what they do for Rack 2
<dbackeus> yeah, maybe something similar but adapted to work well with stronger typing
<jhass> but I guess we should maybe just with something more traditional template method pattern-ish
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asterite_ has joined #crystal-lang
asterite_ has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
havenwood has joined #crystal-lang
<jhass> asterite: if you allow me some tip, currently there are over 20 open PRs without any official feedback at all. If you don't want a change that's fine, just say so. If you want something done differently and don't want to do it on your own/don't have time to do it, that's fine, just say so. But if you want to have a big contributor base, a as tight as possible feedback loop, and be it an acknowledgment
<jhass> that one of you has seen the PR, is essential. No reaction at all is poison in building one up, I can tell this from personal experience
<jhass> don't be afraid to reject stuff, people can totally accept that. Leaving them in the dark is what drives them away
<BlaXpirit> so true
<BlaXpirit> well when i reported issues the feedback was great
asterite_ has joined #crystal-lang
<asterite> jhass: thanks for the feedback. You are right, I also dislike when I submit issues/pull requests and get no feedback at all
<asterite> My main issue with pull requests is that most of the time I'd like to double check with waj, but it's hard to find time
<asterite> Another issue is that contributions have been growing linearly, or so, and if I'd like to handle them all I'd have to use all my free time to that...
<jhass> if you're pro, just merge it and maybe keep a list for when you have time to check up, git revert is a thing and again rejection isn't bad
<jhass> if you're contra just voice your concerns
<jhass> alternatively get waj to do more review :P
<asterite> we were thinking about using gratipay to partially sustain the project, but none of us has any experience with it
<jhass> bountysource seems to be a bit more popular and supports project donations too
<jhass> though I guess the fee is a bit higher
<asterite> I thought bountysource is "we pay you if you do this specific task"
<jhass> that's their main thing, yes. But it supports fundraiser and project wide donations too, at least last time I checked
<havenwood> asterite: here's one for RVM2 for example: https://www.bountysource.com/teams/rvm/fundraiser
<asterite> Wow, they made it!
asterite_ has quit [Remote host closed the connection]
asterite_ has joined #crystal-lang
bcardiff has joined #crystal-lang
asterite_ has quit [Remote host closed the connection]
asterite_ has joined #crystal-lang
<strcmp1> vaporware
<dbackeus> any advise for how to figure out ECR? I'm trying to look at how amethyst uses it to get a view rendered but I really don't get it...
<dbackeus> aha... this might help me out in the meantime: https://github.com/manastech/crystal/blob/master/spec/std/ecr/ecr_spec.cr#L28
<jhass> yeah, specs are always good for usage examples :D
<dbackeus> I think I can make use of it now :)
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenn has joined #crystal-lang
strcmp2 has joined #crystal-lang
ponga has joined #crystal-lang
havenwood has quit [*.net *.split]
strcmp1 has quit [*.net *.split]
qb has quit [*.net *.split]
NeverDie has joined #crystal-lang
bcardiff has quit [Ping timeout: 265 seconds]
qb has joined #crystal-lang
Ven has joined #crystal-lang
unshadow has joined #crystal-lang
<unshadow> Does doing array << "somthing" creates a new array holding everything the old array had + my new edition ?
<strcmp2> its the same as Array#push, it appends an element to an existing array
<strcmp2> if in its implementation it does what you describe im not sure but i dont think so it'd be surprising to me if it did
<unshadow> I'm talking about implementation :)
<strcmp2> thatd be a very efficient way to do it, and its object_id would change.
<strcmp2> inefficient
<dbackeus> seems like crystals String#gsub doesn't support capture groups using \1 \2 etc, any other way to use capture groups at all?
<jhass> dbackeus: pass a block
<dbackeus> thanks
<jhass> >> "foo".gsub(/(f)(o)o/) {|_, m| p m; m[1] }
<DeBot> jhass: Syntax error in eval:4: expecting token 'IDENT', not 'UNDERSCORE' - http://carc.in/#/r/7t7
<jhass> ah right
<jhass> >> "foo".gsub(/(f)(o)o/) {|_f, m| p m; m[1] }
<DeBot> jhass: #<MatchData "foo" 1:"f" 2:"o"> - more at http://carc.in/#/r/7t8
asterite_ has quit [Remote host closed the connection]
unshadow has quit [Quit: leaving]
asterite_ has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
asterite_ has quit [Remote host closed the connection]
asterite_ has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Mercurial_ has joined #crystal-lang
<Mercurial_> Hi, is there any support I could give to the crystal community?
<Mercurial_> As someone who has been following crystal but hasn't worked on it much
<Mercurial_> I also come from a Ruby background
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vYeis
<crystal-gh> crystal/master b22cad7 yui-knk: Fix error messages of undefined macro method exception...
<crystal-gh> crystal/master a2e8f53 yui-knk: Fix test (failed by b22cad)
<crystal-gh> crystal/master 96a05e0 Ary Borenszweig: Merge pull request #1019 from yui-knk/fix/macro_method...
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vYeio
<crystal-gh> crystal/master aa8e0ae yui-knk: Add `abstract def to_s_with_source` to `Crystal::Exception`...
<crystal-gh> crystal/master 321f9ac Ary Borenszweig: Merge pull request #1018 from yui-knk/fix/abstruct_to_s_with_source...
<crystal-gh> [crystal] asterite closed pull request #1017: Add test for `Range.new` (master...test/range_new) http://git.io/vm5fY
shama has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #1003: if doesn't change the types of methods (gh-pages...if-met) http://git.io/vmDgq
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vYePV
<crystal-gh> crystal/master b2debb4 Anton Davydov: Update documentation for Symbol struct [skip ci]
<crystal-gh> crystal/master 5a01f4b Ary Borenszweig: Merge pull request #1002 from davydovanton/doc-symbol...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vYeXv
<crystal-gh> crystal/master 2ae6656 Ary Borenszweig: Small change in Symbol#to_s doc
havenn is now known as havenwood
<travis-ci> manastech/crystal#96a05e0 (master - Merge pull request #1019 from yui-knk/fix/macro_method): The build passed. https://travis-ci.org/manastech/crystal/builds/71973212
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vYeyF
<crystal-gh> crystal/master 89ed1a2 Ary Borenszweig: Merge pull request #969 from yui-knk/fix/space4...
<crystal-gh> crystal/master eae2942 yui-knk: [ci skip] Remove space
<travis-ci> manastech/crystal#321f9ac (master - Merge pull request #1018 from yui-knk/fix/abstruct_to_s_with_source): The build passed. https://travis-ci.org/manastech/crystal/builds/71973301
<Mercurial_> Hi, Is there anyway I could help with crystal development?
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vYe91
<crystal-gh> crystal/master 9810c95 yui-knk: [ci skip] Fix BNF of Array
<crystal-gh> crystal/master f1bc57f Ary Borenszweig: Merge pull request #938 from yui-knk/fix/comment2...
<asterite> Hi Mercurial_. What do you like to do? :-)
Mercurial_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 246 seconds]
sergey-kucher_ has joined #crystal-lang
sergey-kucher_ has quit [Ping timeout: 246 seconds]
<travis-ci> manastech/crystal#2ae6656 (master - Small change in Symbol#to_s doc): The build passed. https://travis-ci.org/manastech/crystal/builds/71973880
sergey-kucher_ has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mercurial_ has joined #crystal-lang
NeverDie has joined #crystal-lang
<travis-ci> manastech/crystal#5a01f4b (master - Merge pull request #1002 from davydovanton/doc-symbol): The build passed. https://travis-ci.org/manastech/crystal/builds/71973624
<jhass> Mercurial_: sure, just peak through the open issues, add you opinion, review PRs, add missing functionality to the standard library or writing a library/binding to something
<jhass> *or write
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
<travis-ci> manastech/crystal#bba13e6 (master - Merge pull request #1017 from yui-knk/test/range_new): The build passed. https://travis-ci.org/manastech/crystal/builds/71973353
<travis-ci> manastech/crystal#3ab10ec (master - Merge pull request #970 from yui-knk/feature/add_class_name): The build passed. https://travis-ci.org/manastech/crystal/builds/71976657
Ven has joined #crystal-lang
<vifino> Is there a function for executing commands without a shell? I have a program I want to invoke and an Array(String) as its arguments. I need to have both stdin and stdout, so I can integrate that nicely into my application.
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbackeus has joined #crystal-lang
<asterite> vifino: There's Process#run
<vifino> asterite: I'll look at that, thanks :)
<jhass> which still doesn't provide stderr...
<BlaXpirit> D:
NeverDie has quit [Excess Flood]
<BlaXpirit> is this a matter of a decision or just nobody got around to it?
NeverDie has joined #crystal-lang
Mercurial_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jhass> well
<BlaXpirit> nobody got around to the decision? :p
<BlaXpirit> oic
sergey-kucher_ has quit [Ping timeout: 246 seconds]
<jhass> asterite: btw you can connect with multiple clients to the bouncer
<asterite> Cool
<jhass> just because an asterite_ appeared :P
sailorswift has joined #crystal-lang
<asterite> Strange. I'm only using one client
<jhass> maybe old connection still configured in limechat?
<asterite> Ah, right, that's it
asterite_ has quit []
<asterite> Couldn't find a way to delete it. There's no interface to see all servers at once :-s
<jhass> strange
<asterite> There's a server menu and a "Delete server..." option
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
havenwood has joined #crystal-lang
zz_sardaukar is now known as sardaukar
zipR4ND has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
zipR4ND1 has joined #crystal-lang
zipR4ND has quit [Ping timeout: 265 seconds]
ponga has quit [Quit: Connection closed for inactivity]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sailorswift has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite closed pull request #1004: Uri fixes (master...uri-fixes) http://git.io/vmDMU
sardaukar has quit [Ping timeout: 256 seconds]
sardaukar has joined #crystal-lang
<sardaukar> does anyone know if it is possible to get the terminal size in Crystal?
<sardaukar> (other than shelling out to some tool?)
<jhass> doubt anybody bound that yet, but find out how to do it in C and do so
<jhass> I suspect it works over the termios stuff
<sardaukar> Juliano's answer
<sardaukar> I think this uses termcap
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vYfHC
<crystal-gh> crystal/master 35b177b Ary Borenszweig: Made URI#userinfo public and optimized it (and URI#to_s as well)
<sardaukar> I get it :D just looking into the best candidate for mac and linux
<sardaukar> that snippet won't compile on mac, it depends on GNU's error.h
<sardaukar> looks like termios is the one
Locke23rus has quit [Ping timeout: 265 seconds]
<sardaukar> jhass: so, it looks like termios' map is laid out here http://linux.die.net/man/3/termios
<sardaukar> how can I get something like a "struct termios*" argument mapped to a Crystal type?
<sardaukar> that's a pointer, right?
<jhass> yup
<jhass> it depends on whether you can get a pointer to it or if you need to allocate it
<sardaukar> gasp
<sardaukar> yes... :D
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sardaukar> and I see how the mapping was done
<jhass> well, make sure to reuse it ;)
<sardaukar> the man page here https://www.cl.cam.ac.uk/cgi-bin/manpage?3+termios shows the struct elements
<sardaukar> how can one easily know to map the tcflag_t struct members to UInt64 ?
<jhass> you can't really, you scavenge the header files till you find it out or make a C program that prints the sizeof
<sardaukar> oh ok
tliff has quit [Ping timeout: 244 seconds]
tliff has joined #crystal-lang
<sardaukar> argh... I'm still not sure how to use this - without using ncurses, the only way to get the terminal size (other than shelling out) seems to be an ioctl call
<sardaukar> I guess that's Linux only, right?
<sardaukar> because I can't see which attr I need to query with tcgetattr ...
Locke23rus has joined #crystal-lang
<sardaukar> to get the size, it is suggested to use:
<sardaukar> #include <sys/ioctl.h>
<sardaukar> ioctl(int fildes, TIOCGWINSZ, struct winsize *);
<sardaukar> but this is Linux-specific, right?
<jhass> according to your stackoverflow link it also doesn't handle resizes
<sardaukar> that should be done by trapping SIGWINCH
<sardaukar> is it really bad performance to shell out to a command line utility to get the window size
<sardaukar> I also want to shell to tput to output the lib's buffer content
salvor has quit [Ping timeout: 246 seconds]
salvor has joined #crystal-lang
bcardiff has joined #crystal-lang
strcmp2 has quit [Quit: Leaving]
asterite has quit [Ping timeout: 246 seconds]
asterite has joined #crystal-lang
drizz has quit [Ping timeout: 246 seconds]
<sardaukar> what is wrong with this code? @buffer = Array(Char|Nil).new.fill(0, lines) { nil }
<crystal-gh> [crystal] will opened pull request #1023: add Char===(:UInt8) casting (master...uint8char) http://git.io/vYJUN
drizz has joined #crystal-lang
Locke23rus has quit [Ping timeout: 244 seconds]
<jhass> sardaukar: not sure what it should do?
<sardaukar> build a 2D array
<sardaukar> I got as far as Array(Char|Nil).new(lines) { Array(Char|Nil).new(cols) { nil } }
<sardaukar> but it doesn't work
<sardaukar> can't grok the error messages yet :|
<sardaukar> no overload matches 'Pointer((Nil | Char))#[]=' with types Int32, Array((Nil | Char))
<sardaukar> ???
<jhass> Array(Array(Char|Nil))
<sardaukar> so I can't fill the array with another one?
<jhass> sure you can, you just can't declare that you want it to contain Char|Nil when you want it to fill it with Array(Char|Int)
<sardaukar> argh, right
<sardaukar> types, types...
<jhass> ;P
<jhass> eh, Array(Char|Nil), you get it
<jhass> btw you can shortcut Foo|Nil with Foo?
<jhass> >> Array(Array(Char?)?).new(5) { Array(Char?).new(5, nil) }
<DeBot> jhass: # => [[nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil], [nil, nil, nil, nil, nil]] - http://carc.in/#/r/7tq
<sardaukar> what's the idiomatic way of doing type aliases?
<sardaukar> or do we always specify types?
<travis-ci> manastech/crystal#ca49210 (master - Merge pull request #1004 from will/uri-fixes): The build passed. https://travis-ci.org/manastech/crystal/builds/72020671
<sardaukar> is this passable ? http://carc.in/#/r/7tr
shadeslayer has quit [Ping timeout: 256 seconds]
sailorswift has joined #crystal-lang
shadeslayer has joined #crystal-lang
<willl> jhass: you wouldn't happen to be going to hamburg for socoded this week are you?
<jhass> nope
Locke23rus has joined #crystal-lang
<jhass> sardaukar: I guess we didn't really establish community standards on that yet ;)
<willl> ah well, if you were I didn't want to accidentally miss you
<jhass> sardaukar: there can only be one instance of nil ever, so the .new(count, nil) form is safe
<jhass> uhm and you're sure you want to get the screen size at compile time?
<sardaukar> I'm not sure of much as of yet, second crystal project :D
<sardaukar> how can I do it at runtime?
<jhass> {{ }} enters the macro language, just remove them :D
<sardaukar> in /usr/local/Cellar/crystal-lang/0.7.4/src/array.cr:87: no overload matches 'String#<' with types Int32
<sardaukar> you ruined it!!!! :P
<jhass> wat
<jhass> ahaha
<jhass> `tput lines`.to_i
<sardaukar> right
<sardaukar> I kinda fill the fill with the block form more expressive
bcardiff has quit [Quit: bcardiff]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
waj has joined #crystal-lang
<sardaukar> is there a way of doing keyword arguments?
<jhass> kinda, you can specify arguments with a default value as keywords in the caller
<sardaukar> but I can't have def initialize(@tl, @tr, @bl, @br, @v, @h)
<sardaukar> and do .new tl: 1, tr: 2 ... etc?
<jhass> >> def foo(x=0, y=0); {x, y}; end; foo(y: 1, x: 2)
<DeBot> jhass: # => {2, 1} - http://carc.in/#/r/7tt
<jhass> yeah sadly you can't, I wish you could
<jhass> at least last time I've checked
<jhass> >> def foo(x, y); {x, y}; end; foo(y: 1, x: 2)
<DeBot> jhass: Error in line 4: wrong number of arguments for 'foo' (0 for 2) - http://carc.in/#/r/7tu
<sardaukar> yeah, same here
<jhass> idk why
<sardaukar> shame - if starting a new lang, make it cool :D
<jhass> gotta blame asterite when he's back :P
* sardaukar shakes fist
bcardiff has joined #crystal-lang
<sardaukar> hmmm... if I pass an argument as default, and its name shadows a local var, I get "expression has no effect"
<sardaukar> guess that makes sense
<sardaukar> would be cool if the compiler know the difference? if they were keys, it would be easier
<sardaukar> there's an argument for it :D
<jhass> not sure I follow
<sardaukar> I have a method def box left, top, right, bottom, style = nil
<sardaukar> if I have a local variable style = 1 and call this method with box = screen.box left = 1, top = 1, right = 12, bottom = 3, style = style
<sardaukar> the compiler spits out "expression has no effect"
<jhass> yeah
<jhass> style: style
<jhass> style = style is a plain assignment, it just happens to be inside a call
<sardaukar> ah I see
<jhass> since all expressions have a value, in the case of an assignment it's always the right hand side, that's in itself valid
<sardaukar> is there a really good Crystal syntax plugin for Sublime?
<jhass> btw I'm used to clock wise starting at the top :P, top, right, bottom, left
<sardaukar> or just the one?
<jhass> just the one so far
<sardaukar> is T R B L how CSS works?
<jhass> somebody hand made a grammar for Atom apparently and there's some prospect of porting it
<jhass> yeah
<sardaukar> changed it now
zipR4ND1 has quit [Ping timeout: 240 seconds]
<sardaukar> why can't I use raise?
<sardaukar> the docs mention it
<sardaukar> undefined method 'raise' ?
<jhass> huh?
<jhass> >> raise "it works?"
<DeBot> jhass: Exception: it works? - more at http://carc.in/#/r/7tw
<sardaukar> in ./praises.cr:16: undefined method 'raise'
<sardaukar> raise widget.type
<sardaukar> ^~~~~
<jhass> weird
<sardaukar> should I open an issue?
<jhass> widget.type looks suspicious though, it's for exceptions
<sardaukar> wow... so if it's a specific field, it acts differently?
<jhass> idk
<sardaukar> I'll open an issue, real curious about this one
<jhass> I just can imagine it acts weird if you pass it no string nor an Exception (subclass) instance
<jhass> >> class Foo; end; raise Foo.new
<DeBot> jhass: Error in line 4: no overload matches 'raise' with types Foo - http://carc.in/#/r/7tx
<sardaukar> well, ok then
<sardaukar> I would expect the same message for this, no "undefined method" when I raise a Symbol
<sardaukar> *not
<jhass> yeah
<jhass> really curious about your minimal reproducer
<jhass> :P
<sardaukar> wait, this works http://carc.in/#/r/7ty
<sardaukar> here is all of it http://carc.in/#/r/7tz
<jhass> definitely a bug
<jhass> er s/edit//
<sardaukar> "There was no output"
<jhass> yeah
<jhass> means it compiled and ran and produced no output
<sardaukar> oh ok, so I'll open an issue with mine
<sardaukar> have to clean it up a bit
<sardaukar> think this is cool for the issue? http://carc.in/#/r/7u7
<jhass> reduced to http://carc.in/#/r/7u6 so far
ozra has joined #crystal-lang
<sardaukar> minimal?
<sardaukar> I'll use this http://carc.in/#/r/7uc
<jhass> getting rid of Array would be optimal
<jhass> http://carc.in/#/r/7ue yup, doesn't depend on Array
<jhass> neither instance variables http://carc.in/#/r/7ug
<sardaukar> getter or property trigger it
<jhass> not sure, removing the outer class removes the trigger too
<sardaukar> ?
waj has quit [Quit: waj]
<sardaukar> ok, I'll use this last one to open an issue
<jhass> that should be good enough :P
<sardaukar> (better names)
<jhass> heh
bcardiff has quit [Quit: bcardiff]
<sardaukar> power of 2 yes!
bcardiff has joined #crystal-lang
waj has joined #crystal-lang
grindhold has quit [Quit: No Ping reply in 180 seconds.]