RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.3 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
daemonwrangler has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
daemonwrangler has quit [Ping timeout: 272 seconds]
willl has quit [Quit: Connection closed for inactivity]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
soveran has quit [Ping timeout: 256 seconds]
benoist has joined #crystal-lang
benoist has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] cjgajard opened pull request #3390: No-copy subarray iteration (Implements #3386) (master...feature/nocopy_each) https://git.io/vPWAd
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
daemonwrangler has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
dhk_ has quit [Quit: Leaving]
Philpax has quit [Ping timeout: 272 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
benoist has joined #crystal-lang
soveran has quit [Ping timeout: 256 seconds]
benoist has quit [Ping timeout: 256 seconds]
onethirtyfive has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
A124 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
Philpax has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has quit [Remote host closed the connection]
benoist has joined #crystal-lang
benoist has quit [Client Quit]
onethirtyfive has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
ponga has joined #crystal-lang
bjz has joined #crystal-lang
eizua has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 272 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <sdogruyol> @Rx14 so i think this is the starting place for making std http streaming? https://github.com/crystal-lang/crystal/blob/master/src/http/server/request_processor.cr
bjz has joined #crystal-lang
optikfluffel has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 272 seconds]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vPlVW
<crystal-gh> crystal/master c4caa42 Julien Portalier: Add Process.executable_path? to access current executable file path...
optikfluffel has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vPlry
<crystal-gh> crystal/master 0b886b6 Duke: add HTML.unescape [Closes #3107]
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Read error: Connection reset by peer]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
<travis-ci> crystal-lang/crystal#0b886b6 (master - add HTML.unescape [Closes #3107]): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/165788113
<DeBot> https://github.com/crystal-lang/crystal/issues/3107 (HTML.unescape is missing)
mark_66 has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vPl6v
<crystal-gh> crystal/master 3430284 Ary Borenszweig: Add `Char#+(Int)` and `Char#-(Int)`
mark_66 has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
<travis-ci> crystal-lang/crystal#3430284 (master - Add `Char#+(Int)` and `Char#-(Int)`): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/165792625
optikfluffel has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vPlPo
<crystal-gh> crystal/master 7f82f79 Ary Borenszweig: Updated Changelog
<travis-ci> crystal-lang/crystal#7f82f79 (master - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/165798387
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vPl1n
<crystal-gh> crystal/master 0ccd3b8 Ary Borenszweig: Fixed wrong changelog entry
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <asterite> We'll work with waj on HTTP server streaming after 0.19.4. Should be really easy: split HTTP::Request into HTTP::Client::Request and HTTP::Server::Request. The server request always has a body_io, and a body which consumes the IO on demand... but if you don't invoke "body" it never gets consumed into a string. This is kind of similar to our current HTTP::Client::Response.
<FromGitter> <asterite> But we wanted to do first the atomic ops so we can work on this and parallelism... in parallel :-P
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #crystal-lang
<travis-ci> crystal-lang/crystal#0ccd3b8 (master - Fixed wrong changelog entry): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/165804805
<Papierkorb> asterite: Do you know of a trick how I could compile a crystal program without any requiring any File IO?
<Papierkorb> as in, not require'ing at all, so that it does not try to link against anything
<BlaXpirit> Papierkorb, you can try to give it an empty prelude
<Papierkorb> BlaXpirit: That's what I do, but string/builder requires IO, so in effect, I can't use string interpolation and with that, almost no to_s() methods
<BlaXpirit> Papierkorb, well what did you expect lol
<BlaXpirit> you can manually re-require some stuff, it's all still there
<Papierkorb> ... That's what I do?
<Papierkorb> and "io" then goes on to require file stuff which will then lead the linker to complain that there's no file API in a operating system kernel, which is correct.
<Papierkorb> or it complains about that libevent stuff
A124 has quit [Ping timeout: 244 seconds]
<BlaXpirit> sigh, that's just not something crystal is usable for
<crystal-gh> [crystal] masukomi opened pull request #3392: improved error message in raise_not_initialized_in_all_initialize (master...better_not_initialized_message) https://git.io/vPldM
<Papierkorb> you can't say until you try. In fact, it works - except that stuff
A124 has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]
miketheman has quit [*.net *.split]
maxpowa has quit [*.net *.split]
aemadrid has quit [*.net *.split]
jwaldrip has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
miketheman_ has joined #crystal-lang
maxpowa has joined #crystal-lang
miketheman_ is now known as miketheman
jwaldrip has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
aemadrid has joined #crystal-lang
snsei has joined #crystal-lang
Philpax_ has quit [Ping timeout: 256 seconds]
snsei has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
<FromGitter> <paulcsmith> Still trying to figure out macros :) Any ideas why this macro is not working? https://gist.github.com/paulcsmith/9074bcb28f6570215b7924fbd832134a
snsei has quit [Ping timeout: 264 seconds]
paulcsmith_ has joined #crystal-lang
<Papierkorb> paulcsmith: what's the error you're getting?
<Papierkorb> ah there it is
<FromGitter> <paulcsmith> So I did notice that if I don't use the NamedTuple style and do `render :show, Announcement.new` it works fine. Not sure why that is though
<Papierkorb> paulcsmith: Try (action_name, **args) instead
<Papierkorb> paulcsmith: The thing is, if you want to accept both keyword args and non-keyword args, you have to use (action_name, *args, **kwargs), and then splat them with the same asterix's
<FromGitter> <paulcsmith> Papierkorb: Yeah double asterisks worked, but as you said then it doesn't work with `render :show, Announcement.new`
<FromGitter> <paulcsmith> I'm not sure I understand "then splat them with the same asterix's"?
<Papierkorb> as in: the_call({{ *args }}, {{ **kwargs }})
<FromGitter> <paulcsmith> Ok I'll give that a shot. Thanks for the help!
paulcsmith_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> cheers
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
paulcsmith_ has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
soveran has joined #crystal-lang
paulcsmith_ has quit [Quit: Textual IRC Client: www.textualapp.com]
eizua has quit [Quit: Leaving]
ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.4 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<FromGitter> <paulcsmith> Is it possible to get a list of methods (as Symbols) in macro that a type defines? I tried `{{@type.methods}}` but that seems to return the methods and the method body :S
<BlaXpirit> paulcsmith, it returns objects that represent the methods, they just happen to have the string interpretation as the reconstructed method body
<BlaXpirit> paulcsmith, check out https://crystal-lang.org/api/0.19.4/Crystal/Macros/TypeNode.html#methods%3ACrystal%3A%3AMacros%3A%3AArrayLiteral%28Def%29-instance-method and click on Def
<FromGitter> <paulcsmith> Awesome! Thank you so much BlaXpirit.
<FromGitter> <paulcsmith> This seemed to work (now that I understand it returns a `Def` https://gist.github.com/paulcsmith/2e122a710563c9fd7054369a6af95184
<FromGitter> <sdogruyol> This article from Pat is great patshaughnessy.net/2016/10/7/need-a-second-opinion-on-your-ruby-code-ask-crystal
<wmoxam> @sdogruyol: It is, thanks!
pduncan has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
sandelius has joined #crystal-lang
coderobe has quit [*.net *.split]
Raimondi has quit [*.net *.split]
havenwood has quit [*.net *.split]
bazaar has quit [*.net *.split]
ssvb has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
txdv has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Papierkorb has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
ssvb has joined #crystal-lang
txdv has joined #crystal-lang
coderobe has joined #crystal-lang
go|dfish has joined #crystal-lang
bazaar has joined #crystal-lang
Raimondi has joined #crystal-lang
jwaldrip has quit [*.net *.split]
aarongodin has quit [*.net *.split]
CompanionCube has quit [*.net *.split]
m94asr has quit [*.net *.split]
m94asr has joined #crystal-lang
CompanionCube has joined #crystal-lang
mrslowly has joined #crystal-lang
<mrslowly> hi all. Is there a way to get the current file path in crystal?
<BlaXpirit> >> __FILE__
<DeBot> BlaXpirit: # => "eval" - https://carc.in/#/r/1bj0
<FromGitter> <jwoertink> `__FILE__`
<FromGitter> <johnjansen> `__FILE__`
<FromGitter> <johnjansen> snap
<FromGitter> <jwoertink> lol I like how it made it bold on gitter
<FromGitter> <jwoertink> even though markdown bold is * and italic is _
<FromGitter> <paulcsmith> Hmm, been struggling with this for awhile. Can't figure out why the types methods are not available inside of an `inherited` macro: https://gist.github.com/paulcsmith/e1415c2757d2c03e533c02ed79a0c8b5 any ideas?
<FromGitter> <johnjansen> backpacks makes it code ;-)
<FromGitter> <johnjansen> backticks … dont know what a backpack would do to it
<mrslowly> thanks
havenwood has quit [Read error: Connection reset by peer]
jwaldrip has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
soveran has joined #crystal-lang
aarongodin has joined #crystal-lang
aemadrid has quit [*.net *.split]
maxpowa has quit [*.net *.split]
ponga has quit [*.net *.split]
matp has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
Yxhuvud has quit [*.net *.split]
DeBot has quit [*.net *.split]
jfontan has quit [*.net *.split]
Yxhvd has joined #crystal-lang
maxpowa has joined #crystal-lang
matp has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
aemadrid has joined #crystal-lang
jfontan has joined #crystal-lang
ponga has joined #crystal-lang
emmanueloga has joined #crystal-lang
vifino has quit [*.net *.split]
vifino has joined #crystal-lang
kiliankoe has quit [*.net *.split]
bjmllr has quit [*.net *.split]
avdi has quit [*.net *.split]
gewo has quit [*.net *.split]
jokke has quit [*.net *.split]
Majost has quit [*.net *.split]
jokke has joined #crystal-lang
bjmllr has joined #crystal-lang
gewo has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
mgarciaisaia has joined #crystal-lang
havenwood has joined #crystal-lang
<mrslowly> is there a good logging library?
<FromGitter> <johnjansen> Logger? https://crystal-lang.org/api/0.19.4/Logger.html
<mrslowly> oh I didn't even think to check the docs, thanks
<FromGitter> <johnjansen> get used to doing exactly that … theres alot of content, and subtle differences to Ruby (if you have experience there)
<mrslowly> yeah I was just looking at awesome-crystal/crystalshards.xyz. I am from ruby so ill just look at the docs
avdi has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
kiliankoe has joined #crystal-lang
A124 has quit [*.net *.split]
onionhammer1 has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
ryanf has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
leafybasil has quit [*.net *.split]
badeball has quit [*.net *.split]
mroth has quit [*.net *.split]
woodruffw has quit [*.net *.split]
dzv_ has quit [*.net *.split]
hmans has quit [*.net *.split]
mjblack has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
fedruantine_ has quit [*.net *.split]
leex has quit [*.net *.split]
jamie_ca_ has quit [*.net *.split]
mose has quit [*.net *.split]
pataphysics has quit [*.net *.split]
endou_ has quit [*.net *.split]
badeball has joined #crystal-lang
leafybasi has joined #crystal-lang
endou has joined #crystal-lang
leex has joined #crystal-lang
pleiosaur has joined #crystal-lang
onionhammer1 has joined #crystal-lang
pataphysics has joined #crystal-lang
dzv_ has joined #crystal-lang
A124 has joined #crystal-lang
ryanf has joined #crystal-lang
jamie_ca has joined #crystal-lang
mjblack has joined #crystal-lang
mose has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has joined #crystal-lang
woodruffw has quit [Excess Flood]
justinmcp has joined #crystal-lang
woodruffw has joined #crystal-lang
hmans has joined #crystal-lang
[spoiler] has joined #crystal-lang
guilleiguaran__ has quit [Write error: Connection reset by peer]
jwaldrip has quit [Write error: Connection reset by peer]
aemadrid has quit [Write error: Connection reset by peer]
danzilio_ has quit [Ping timeout: 250 seconds]
mgarciaisaia has quit [Read error: Connection timed out]
mgarciaisaia has joined #crystal-lang
fedruantine has joined #crystal-lang
grindhold has quit [*.net *.split]
BlaXpirit has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
early` has quit [*.net *.split]
dostoyevsky has joined #crystal-lang
BlaXpirit has joined #crystal-lang
grindhold has joined #crystal-lang
early has joined #crystal-lang
jokke has quit [Ping timeout: 251 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mose has quit [Changing host]
mose has joined #crystal-lang
aemadrid has joined #crystal-lang
mroth has joined #crystal-lang
soveran has quit [Remote host closed the connection]
jokke has joined #crystal-lang
danzilio_ has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
asterite has quit [*.net *.split]
rkeene has quit [*.net *.split]
rtl has quit [*.net *.split]
swav has quit [*.net *.split]
nickc2 has quit [*.net *.split]
FromGitter has quit [*.net *.split]
pabs has quit [*.net *.split]
dom96 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
wmoxam has quit [*.net *.split]
Liothen has quit [*.net *.split]
jhass has quit [*.net *.split]
adam12 has quit [*.net *.split]
braidn has quit [*.net *.split]
tilpner has quit [*.net *.split]
_jungh4ns has quit [*.net *.split]
tliff has quit [*.net *.split]
foca has quit [*.net *.split]
Cyrus has quit [*.net *.split]
trajing has quit [*.net *.split]
tliff has joined #crystal-lang
rtl has joined #crystal-lang
pabs has joined #crystal-lang
Liothen has joined #crystal-lang
trajing has joined #crystal-lang
FromGitter has joined #crystal-lang
jhass has joined #crystal-lang
tilpner has joined #crystal-lang
rkeene has joined #crystal-lang
wmoxam has joined #crystal-lang
adam has joined #crystal-lang
adam is now known as Guest32991
g3funk has joined #crystal-lang
asterite has joined #crystal-lang
foca has joined #crystal-lang
Guest37817 has joined #crystal-lang
Liothen has quit [Changing host]
Liothen has joined #crystal-lang
swav has joined #crystal-lang
oddmunds has joined #crystal-lang
nickc2 has joined #crystal-lang
dom96 has joined #crystal-lang
RX14 has quit [Quit: Fuck this shit, I'm out!]
RX14 has joined #crystal-lang
Kilo`byte has joined #crystal-lang
elomatreb_ has joined #crystal-lang
Tophe has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
Kilobyte22 has quit [*.net *.split]
elomatreb has quit [*.net *.split]
Tophe_ has joined #crystal-lang
_jungh4ns has joined #crystal-lang
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greenbigfrog has joined #crystal-lang
aemadrid has joined #crystal-lang
aemadrid has quit [Changing host]
mroth has joined #crystal-lang
mroth has quit [Changing host]
danzilio_ has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
danzilio_ has quit [Changing host]
guilleiguaran__ has quit [Changing host]
greenbigfrog has joined #crystal-lang
greenbigfrog has quit [Changing host]
bjz has joined #crystal-lang
havenwood has quit [Remote host closed the connection]
Tophe_ has quit [*.net *.split]
rkeene has quit [*.net *.split]
swav has quit [*.net *.split]
onionhammer1 has quit [*.net *.split]
leex has quit [*.net *.split]
leafybasi has quit [*.net *.split]
badeball has quit [*.net *.split]
m94asr has quit [*.net *.split]
coderobe has quit [*.net *.split]
jokke has quit [*.net *.split]
BlaXpirit has quit [*.net *.split]
fedruantine has quit [*.net *.split]
hmans has quit [*.net *.split]
justinmcp has quit [*.net *.split]
dzv_ has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
bjmllr has quit [*.net *.split]
CompanionCube has quit [*.net *.split]
ssvb has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
rtl has quit [*.net *.split]
Guest32991 has quit [*.net *.split]
pawnbox has quit [*.net *.split]
gewo has quit [*.net *.split]
Guest37817 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
grindhold has quit [*.net *.split]
mgarciaisaia has quit [*.net *.split]
endou has quit [*.net *.split]
avdi has quit [*.net *.split]
vifino has quit [*.net *.split]
Yxhvd has quit [*.net *.split]
Raimondi has quit [*.net *.split]
bazaar has quit [*.net *.split]
danzilio_ has quit [Ping timeout: 250 seconds]
Guest32991 has joined #crystal-lang
gewo has joined #crystal-lang
pawnbox has joined #crystal-lang
rtl has joined #crystal-lang
pleiosaur has joined #crystal-lang
jokke has joined #crystal-lang
leafybasi has joined #crystal-lang
leex has joined #crystal-lang
onionhammer1 has joined #crystal-lang
rkeene has joined #crystal-lang
badeball has joined #crystal-lang
swav has joined #crystal-lang
Tophe_ has joined #crystal-lang
m94asr has joined #crystal-lang
coderobe has joined #crystal-lang
oddmunds has joined #crystal-lang
Guest37817 has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
grindhold has joined #crystal-lang
endou has joined #crystal-lang
avdi has joined #crystal-lang
vifino has joined #crystal-lang
Yxhvd has joined #crystal-lang
Raimondi has joined #crystal-lang
bazaar has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
Guest37817 has quit [Max SendQ exceeded]
vifino has quit [Max SendQ exceeded]
Raimondi has quit [Remote host closed the connection]
<FromGitter> <cjgajard> @paulcsmith there are 2 things.`macro inherited` get run at line 13, when my_cool_method does not exist yet, you have to escape the macro (`\{{ }}` or `\{% %}`) in order to delay is evaluation (making `method_names_in_inherited` a `macro def`).. on the other hand `macro method_names` is "class-level" but `def method_names_in_inherited` is "instance-level" (so have to call it with `Task.new.method_names_in_inherited`
Raimondii has joined #crystal-lang
Guest37817 has joined #crystal-lang
Raimondii is now known as Raimondi
danzilio_ has joined #crystal-lang
vifino has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #crystal-lang
havenwood has quit [Changing host]
havenwood has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <paulcsmith> @cjgajard Thanks so much for the feedback. You're right about calling it at a class level on accident. Oops :) I tried using a `\{{ }}` and that did delay things, but now I'm trying an example that's a bit more complicated and using the `\` seems to escape the macro or something :S
mrslowly has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<FromGitter> <paulcsmith> Also where did you find out about delaying macro execution? I went over the macro guides a few times and didn't see anything about that. Maybe I'm looking in the wrong place :)
<FromGitter> <paulcsmith> Here's a gist of what I'm trying to do BTW: https://gist.github.com/paulcsmith/7f4cc5f5b34c7b6410395bc8bda81920
mrslowly has joined #crystal-lang
<mrslowly> is there documentation on scope?
<FromGitter> <paulcsmith> Error in that macro is `Syntax error in expanded macro: inherited:3: unexpected token: {% (expecting when, else or end)`. Not sure why it would expect a `when, else or end` :S
soveran has joined #crystal-lang
<mrslowly> nevermind, it was under "visibility", not scope
<mrslowly> So crystal doesn't support global variables?
leafybasi is now known as leafybasil
soveran has quit [Ping timeout: 248 seconds]
<FromGitter> <johnjansen> i assume the docs are up to date
mgarciaisaia has left #crystal-lang [#crystal-lang]
<mrslowly> `$global_variables are not supported, use @@class_variables instead`
<mrslowly> Crystal 0.19.4
<FromGitter> <johnjansen> ahhh well there you go then ;-)
<mrslowly> weird that they would be removed
<FromGitter> <johnjansen> not so much at this stage in development
<mrslowly> yeah that's true. oh well, I guess I can just create a module and call it first thing
mrslowly has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bjz has joined #crystal-lang
<FromGitter> <johnjansen> anyone got reference to `sprintf`what i have found so far is pretty much useless to me at least
mroth has quit [Ping timeout: 260 seconds]
guilleiguaran__ has quit [Write error: Connection reset by peer]
aemadrid has quit [Write error: Connection reset by peer]
mroth has joined #crystal-lang
mroth has quit [Remote host closed the connection]
<Papierkorb> johnjansen, what do you need sprintf for?
<FromGitter> <johnjansen> printing just the int component of a series of floats, seemed like that would be the simplest
<FromGitter> <johnjansen> other number formatting
<Papierkorb> Use #to_i
<Papierkorb> 12.34.to_i # => 12
<FromGitter> <johnjansen> in that case its fine
<FromGitter> <johnjansen> how about a mask?
<Papierkorb> it uses the standard string formatting options, see "man sprintf" - In your case, it's %.f
<Papierkorb> mask?
mroth has joined #crystal-lang
<FromGitter> <johnjansen> oh boy, is it friday already … no wonder im asking dumn questions
<Papierkorb> It's Saturday where I am :)
<FromGitter> <johnjansen> haha
elomatreb_ has quit [Quit: mep mep]
<FromGitter> <johnjansen> the future :-)
elomatreb has joined #crystal-lang
aemadrid has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
jwaldrip has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jwaldrip has quit [Ping timeout: 260 seconds]
aemadrid has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 260 seconds]
guilleiguaran__ has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #crystal-lang
mrslowly has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
mroth has joined #crystal-lang
aemadrid has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
jwaldrip has joined #crystal-lang