<FromGitter>
<Blacksmoke16> related is `Hash(String, Cookie)` actually sufficient. Given it's possible to have multiple cookies with the same name but diff other values
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
f1reflyylmao is now known as f1refly
alexherbo2 has quit [Ping timeout: 240 seconds]
<FromGitter>
<HertzDevil> til annotations cannot have visibility modifiers
DTZUZU has quit [Ping timeout: 240 seconds]
DTZUZU has joined #crystal-lang
_ht has joined #crystal-lang
alexherbo2 has joined #crystal-lang
hendursaga has joined #crystal-lang
hendursa1 has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter>
<naqvis> or what is called as class methods
<FromGitter>
<resuni:matrix.org> Yes! Thank you!
<FromGitter>
<naqvis> if your module is going to contain all static methods, then its easier to add `extend self` at the top of module and then adding methods with `def name....`
<FromGitter>
<resuni:matrix.org> It certainly seems more intuitive to do that, especially if I only have one module function.
<FromGitter>
<resuni:matrix.org> Is `extend` ever used beyond `extend self`?
<FromGitter>
<Blacksmoke16> benefit of `extend self` is iirc it exposes the methods as class methods in that module, but also allows for `extend TheModule` for adding them to another type
<FromGitter>
<Blacksmoke16> i didnt test that but i think its true :P
<FromGitter>
<Blacksmoke16> but thats not real common and i usually just do `self.` anyway