<FromGitter>
<watzon> Is there any way to make a generic type argument so that it defaults to the type of another generic? For instance `class Node(T, K = T)` or something like that, where `K` is of type `K` if defined, and `T` if not.
kludd has left #crystal-lang [#crystal-lang]
rohitpaulk has quit [Ping timeout: 272 seconds]
_whitelogger has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> `Onyx::SQL.query` my bad
<FromGitter>
<Blacksmoke16> seems it works when i use the schema macro
alex``` has quit [Ping timeout: 248 seconds]
alex``` has joined #crystal-lang
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
rohitpaulk has joined #crystal-lang
<FromGitter>
<Blacksmoke16> how would you delete a cookie? im not seeing any method to do that
laaron has quit [Remote host closed the connection]
<FromGitter>
<tenebrousedge> @Blacksmoke16 I also don't see a method to do that. There probably should be one. In the meantime, the only thing that springs to mind would be using `from_headers`with a set of headers with that cookie removed
laaron has joined #crystal-lang
<FromGitter>
<Blacksmoke16> 😐
<FromGitter>
<tenebrousedge> you could also try setting an expiration date in the past
<FromGitter>
<Blacksmoke16> not ideal either
<FromGitter>
<Blacksmoke16> ill give that a try
rohitpaulk has quit [Ping timeout: 244 seconds]
laaron has quit [Remote host closed the connection]
<FromGitter>
<tenebrousedge> `@ctx` should be `@context`, in my opinion. Variables should be dictionary words whenever possible
<FromGitter>
<tenebrousedge> it's also distinctly possible that access to these things should be through a method
<FromGitter>
<drum445> Cheers, yeah possibly. I think I'll look at making url params method params.
<FromGitter>
<tenebrousedge> `h`, `r`, and `ap` are good as method aliases, but again, dictionary words provide important context
<FromGitter>
<drum445> Noted thanks mate. Will make them aliases and have the full name also
<FromGitter>
<drum445> @tenebrousedge when you see through a method, do you mean they should be private or as part of the method's params?
<FromGitter>
<tenebrousedge> `jrender` vs `render`, maybe `json` should be a parameter passed to `render`? I don't recall other frameworks that have a separate `render` method for json, but I could easily be confused on that one
<FromGitter>
<tenebrousedge> using `context()` as opposed to `@context`
<FromGitter>
<tenebrousedge> yes, then you can change the implementation, or mock out the method for testing, and the rest of the code shouldn't have to care
<FromGitter>
<Blacksmoke16> https://github.com/Blacksmoke16/athena/releases/tag/v0.7.0 Athena version 0.7.0 is now released. Adds in the DI/service container modules, Crylog logging framework, and some QoL changes to how configuration/environments are handled
<FromGitter>
<Prutheus> @Blacksmoke16 can you help me please?
<FromGitter>
<Blacksmoke16> id vote its where you're callc malloc?
<FromGitter>
<Blacksmoke16> i dont really know anything about c stuff
<FromGitter>
<Prutheus> I am not calling malloc! that's the strange point
<FromGitter>
<Blacksmoke16> prob something internal then
<FromGitter>
<Blacksmoke16> so not in the stdlib at least as far as i can tell
<FromGitter>
<dscottboggs_gitlab> this didn't compile at some point in the past and I'm so glad that it does now :D https://carc.in/#/r/71xh so much cleaner syntax than the alternative
<FromGitter>
<dscottboggs_gitlab> apparently I'm wrong about it not compiling in the past (checked all the versions of crystal that I'd used before on carc.in and they all worked) but I'm stilll glad that i can do that rather than having to https://carc.in/#/r/71xo
<rkeene>
PKCS#11 is unrelated to PKCS#5 in the same way that RFC2616 is unrelated to RFC2822 -- they're both standards, but for different kinds of things