ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/master/HTTP/Cookies.html#delete(key)-instance-method shouldnt this take into consideration the domain/path of the cookie?
<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.]
yxhuvud has joined #crystal-lang
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 252 seconds]
<FromGitter> <Blacksmoke16> https://github.com/crystal-lang/crystal/issues/9802 would support it inherintly i think 😉
maxpowa has quit [Ping timeout: 260 seconds]
maxpowa has joined #crystal-lang
<FromGitter> <HertzDevil> not true
alexherbo2 has joined #crystal-lang
<FromGitter> <Blacksmoke16> maybe, ⏎ ⏎ ```@[Annotation] ⏎ private record MyAnn``` ⏎ ⏎ that would prob make it file specific anyway no? [https://gitter.im/crystal-lang/crystal?at=60771e47969f8b38ee7ae817]
<FromGitter> <resuni:matrix.org> Is it possible to call a module function from outside the module? https://play.crystal-lang.org/#/r/avc7
<FromGitter> <naqvis> yes. but you need to make that static https://play.crystal-lang.org/#/r/avnq
<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> I thought `extend self` is only used if you are adding functionality to an existing module in a new file.
<FromGitter> <naqvis> adding functionality to existing modules/classes/structs doesn't require any special action, other than opening the same
<FromGitter> <resuni:matrix.org> My understanding of `extend self` is very fuzzy. Where can I read more about it?
<straight-shoota> I wouldn't use extend
<straight-shoota> it's typically just confusing
<straight-shoota> instead of `extend self` just define your methods as `def self.foo`
<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
<FromGitter> <resuni:matrix.org> That makes sense. Thank you.
duane has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 265 seconds]
hendursaga has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #crystal-lang
duane has quit [Ping timeout: 240 seconds]
duane has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 260 seconds]
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
Human_G33k has joined #crystal-lang
HumanG33k has quit [Ping timeout: 265 seconds]
hendursaga has joined #crystal-lang
hendursaga has quit [Remote host closed the connection]
hendursaga has joined #crystal-lang
postmodern has joined #crystal-lang
<postmodern> when storing constant global data, like in constants or class-vars, should one use an Array or a Tuple or a StaticArray?
<FromGitter> <Blacksmoke16> most likely array
HumanG33k has joined #crystal-lang
Human_G33k has quit [Ping timeout: 252 seconds]