Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:14
    straight-shoota edited #12802
  • 00:12
    straight-shoota synchronize #12802
  • 00:05
    straight-shoota synchronize #12802
  • 00:00
    straight-shoota synchronize #12802
  • Nov 30 23:44
    straight-shoota synchronize #12802
  • Nov 30 23:30
    straight-shoota closed #12804
  • Nov 30 17:21
    straight-shoota labeled #12810
  • Nov 30 17:21
    straight-shoota labeled #12810
  • Nov 30 17:21
    straight-shoota opened #12810
  • Nov 30 17:09
    straight-shoota labeled #12809
  • Nov 30 17:09
    straight-shoota labeled #12809
  • Nov 30 17:09
    straight-shoota opened #12809
  • Nov 30 14:41
    Blacksmoke16 labeled #12808
  • Nov 30 14:41
    Blacksmoke16 labeled #12808
  • Nov 30 14:41
    Blacksmoke16 labeled #12808
  • Nov 30 14:40
    Blacksmoke16 labeled #12807
  • Nov 30 14:40
    Blacksmoke16 labeled #12807
  • Nov 30 14:40
    Blacksmoke16 labeled #12807
  • Nov 30 14:40
    straight-shoota milestoned #12688
  • Nov 30 14:40
    straight-shoota milestoned #12688
Kent 'picat' Gruber
@picatz
The index is also used as the default flag if not specified otherwise.
I've sort of recently adopted that.
But, I'm cool with it. I think it makes things simpler without adding too much complexity. I think.
In practice there wouldn't be a big problem being redundant if people didn't know and always set the flag
I almost never use the flags block in my examples
There you can explicitly set short and long flag types.
I gotta go do some stuff, but I'll be back later :v:
Weston
@wwselleck
l8r
Weston
@wwselleck
oh boy this whole block/yield stuff is going to take some practice.
it seems similar to nodeish callbacks on the surface, but they're used very differently it seems
Kent 'picat' Gruber
@picatz
It's not too bad, but takes some getting used to: https://gist.github.com/picatz/7f280bea5b8cf05491df95fbb445d78c
You can do some nifty things with blocks.
Best thing to do is load up crystal play and play around with stuff.
For really small examples.
Stephan Langeveld
@Fanna1119
whats the difference between block one and 2 ?
1.upto(100) do |x|
    puts x
end

1.upto(100) {|x| puts x}
Kent 'picat' Gruber
@picatz
Basically a do can be a { and a end can be a }.
So, my understanding is, basically nothing.
Stephan Langeveld
@Fanna1119
@picatz ahh thank you :), coming from a non ruby background. i am still in the phase where i don't what works and what doesn't as well as not sure what is the "right" way of doing some things just yet haha
Kent 'picat' Gruber
@picatz
No worries :+1:
I don't mind helping out, at least as much as I can :joy:
cevarief
@cevarief
Is it possible to call a class without instantiating but still keep overloading?
cevarief
@cevarief
yes possible
But it should be all using self. Can self call non self method?
Rubi
@codenoid
Rubi
@codenoid
nice, i use super tab
From IRC (bridge bot)
@FromIRC
<Groogy> Morning!
<vegai> top of the mornin to you laddies
unreadable
@unreadable
morning fellows
Serdar Dogruyol - Sedo セド
@sdogruyol
Morning and have a good week everyone
unreadable
@unreadable
and a productive one as well ;)
Stephan Langeveld
@Fanna1119
when you use a c binding in crystal and compile your crystal file, is the c library included into the compilation ?
ShalokShalom
@ShalokShalom
@picatz somebody here told and link me, that there is actually a difference between {} and do/end
ShalokShalom
@ShalokShalom
Papierkorb: I just read your line "Though I'm currently most interested in Widgets, as they're the definitive source of correct native look n' feel" again and realised, that there is stuff like Kirigami, which provides a native look n`feel standard for QML: https://dot.kde.org/2017/08/02/plasma-rocks-akademy
Its a Tier1 as told, so works without any other KDE framework. :)
From IRC (bridge bot)
@FromIRC
<Groogy> @Fanna1119 yes if it is a statically linked library I think it is?
<Groogy> but if it is a shared library it will onmly contain the code to dynamically link with it
Stephan Langeveld
@Fanna1119
@FromIRC just to clarify, a shared a library is usually ".so", and statically linked is .o ?
From IRC (bridge bot)
@FromIRC
@Fanna1119, I'm a bot, bleep, bloop. I relay messages between IRC (#crystal-lang on chat.freenode.net) and here
Stephan Langeveld
@Fanna1119
or do i have it backwards haha
From IRC (bridge bot)
@FromIRC
<Groogy> statically linked is .a on Linux at least
<Groogy> it's an archive of object(.o) though
<Groogy> but I am not 100% sure because I haven't tried linking statically with Crystal yet
Rubi
@codenoid
agree
schoening
@schoening
should modules start with an uppercase?
Bar Hofesh
@bararchy
It seems that read_timeout and write_timeout does not work for pipes
From IRC (bridge bot)
@FromIRC
<vegai> @schoening: https://crystal-lang.org/docs/conventions/coding_style.html here's something to start with :⁠)
schoening
@schoening
ups
.. wrong chat sorry
@vegai thank you, crystal has it all specified nicely. I was actually trying to ask in the typescript room :p
From IRC (bridge bot)
@FromIRC
<vegai> :}