Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:46
    HertzDevil synchronize #12282
  • 02:44
    HertzDevil synchronize #12494
  • 00:21
    HertzDevil synchronize #10839
  • Sep 26 21:51
    beta-ziliani synchronize #12511
  • Sep 26 18:52
    asterite unlabeled #12525
  • Sep 26 18:52
    asterite unlabeled #12525
  • Sep 26 18:47
    asterite closed #12525
  • Sep 26 17:35
    straight-shoota labeled #12386
  • Sep 26 17:18
    straight-shoota labeled #12195
  • Sep 26 17:17
    straight-shoota labeled #12527
  • Sep 26 17:17
    straight-shoota opened #12527
  • Sep 26 17:17
    straight-shoota labeled #12527
  • Sep 26 17:13
    straight-shoota labeled #12412
  • Sep 26 17:13
    straight-shoota unlabeled #12412
  • Sep 26 14:16
    straight-shoota demilestoned #12520
  • Sep 26 14:16
    straight-shoota demilestoned #12520
  • Sep 26 14:16
    straight-shoota milestoned #12520
  • Sep 26 14:16
    straight-shoota milestoned #12520
  • Sep 26 14:16
    straight-shoota milestoned #12520
  • Sep 26 14:16
    straight-shoota milestoned #12520
Will
@Willamin
hahaha
From IRC (bridge bot)
@FromIRC
<Papierkorb> A method that takes an integer (or anything) as argument doesn't know if it was passed in as literal or through an variable (or ...), if that's what you mean.
Will
@Willamin
I was hoping that I would also be able to tell if the macro was called from a literal (eg. 0.is_this_a_0_at_compile_time) vs called from a variable (eg. x.is_this_a_0_at_compile_time),
From IRC (bridge bot)
@FromIRC
<Papierkorb> No, as a macro is state-less, you can't call it like a member method.
Ghost
@ghost~55586c4815522ed4b3e08557
Will
@Willamin
You can call a macro like a member method, using macro def, can you not?
From IRC (bridge bot)
@FromIRC
<Papierkorb> But a macro, if you pass it as argument to it, can know if it's a literal or not, and then could signal an error to the user
Ghost
@ghost~55586c4815522ed4b3e08557
@Willamin macro def is not really documented iirc, it's not meant for this use I think
From IRC (bridge bot)
@FromIRC
<Papierkorb> With a disclaimer
Ghost
@ghost~55586c4815522ed4b3e08557
ah thanks
either way, in a macro def you have access to @type (Int32) but not self (0) at compile time
Will
@Willamin
Oh well, thanks anyways! :D
Serdar Dogruyol - Sedo セド
@sdogruyol
how can I check if a value is truthy outside of a guard clause
From IRC (bridge bot)
@FromIRC
<Yxhuvud> What do you want to achieve?
Elias Perez
@eliasjpr
@oprypin My apologies was never my intention I will remove
I just wanted some tees
Elias Perez
@eliasjpr
@oprypin removed!
José Rodrigues
@joselfr
What is the LICENSE of the crystal logo?
From IRC (bridge bot)
@FromIRC
<oprypin> @eliasjpr, hey it's not my decision either way. but you're supposed to ask permission. see https://crystal-lang.org/media/ bottom of page
Elias Perez
@eliasjpr
👌🏻👍🏻 thanks
From IRC (bridge bot)
@FromIRC
<oprypin> @jose-rodrigues, see that link too
Elias Perez
@eliasjpr
I think crystal team should open a store for tees and stuff that would be a nice way to contribute for the crystal cause
From IRC (bridge bot)
@FromIRC
<oprypin> for sure
Claudio Holanda
@kazzkiq
Is Process.run a blocking method?
If I run a cURL command via Proccess.run, and it takes 10 seconds to return, is my application going to hang for 10 seconds?
From IRC (bridge bot)
@FromIRC
<oprypin> @kazzkiq, it's a convenience method that wraps Process.new and Process.wait which blocks the current fiber until the process ends
<oprypin> also why run a curl command......
laurent bernabé
@loloof64
Hello everyone :smiley: Is there already a binding for WxWidgets for Crystal ? My Google search did not show me suitable result.
Rubi
@codenoid
Faustino Aguilar
@faustinoaq

huh what does the delegate macro do exactly? Not seen that before

Groogy, check :point_right: http://devdocs.io/crystal/api/0.23.0/object#delegate(*methods,toobject)-macro

Hello everyone :smiley: Is there already a binding for WxWidgets for Crystal ?

unfortunately

But you can try Qt bindings :wink:

https://github.com/Papierkorb/qt5.cr

Claudio Holanda
@kazzkiq

<oprypin> also why run a curl command......

Because that's the only way to make Mailgun work with Crystal at the moment

Cris Ward
@crisward
@kazzkiq I have a mailgun client, just not got around to open sourcing it yet. It's actually mailgun and sendgrid. I use HTTP::Client. I want to add a wrapper around SMTP with it to, so it's a common api for however you want to send mail.
laurent bernabé
@loloof64
Thanks @codenoid Maybe I'll have to do myself bindings for the functionnalities I need
Or use another GUI framework like libui : http://crystalshards.xyz/?filter=libui
From IRC (bridge bot)
@FromIRC
<oprypin> @kazzkiq, are you sure about that? crystal's http client should (at least strive to) provide all the same functionality. if it doesnt match that expectation, ask for help / report it
laurent bernabé
@loloof64
Thank you also @faustinoaq Maybe Qt binding will be the solution.
Faustino Aguilar
@faustinoaq
Yeah Qt bindings are awesome! :sparkles:
Screenshot_20170926_142450.png
From IRC (bridge bot)
@FromIRC
<Papierkorb> <⁠3
Faustino Aguilar
@faustinoaq
:+1:
A = [] of Nil
{% A << 0 %}
{% p A[0] %} # => 0
How is this possible ?
From IRC (bridge bot)
@FromIRC
<Papierkorb> lul ^
Elias Perez
@eliasjpr
:confused:
From IRC (bridge bot)
@FromIRC
<oprypin> yeah not the first time i see this
Elias Perez
@eliasjpr
Maybe is not a bug maybe is a feature :D
maybe this is why https://carc.in/#/r/2sv9