<FromGitter>
<kvirani> (^^ Asking in crystal gitter channel)
_whitelogger has joined #amber
_whitelogger has joined #amber
_whitelogger has joined #amber
zbaylin has quit [Ping timeout: 256 seconds]
_whitelogger has joined #amber
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 246 seconds]
feepbot has joined #amber
<FromGitter>
<eliasjpr> The two constructors are the same.
<FromGitter>
<eliasjpr> What exactly you are trying to do?
<FromGitter>
<mixflame> that was my thought
<FromGitter>
<mixflame> by the well hello @eliasjpr
<FromGitter>
<mixflame> /s/well/way
<FromGitter>
<eliasjpr> Hello everyone
<FromGitter>
<Blacksmoke16> they're not, constraints is diff
<FromGitter>
<Blacksmoke16> one is `Hash(Symbol, Regex)`, other is `Hash(String, Regex)`
<FromGitter>
<eliasjpr> String | Symbol union instead
<FromGitter>
<eliasjpr> Maybe
<FromGitter>
<Blacksmoke16> that and make it nilable and nil by default would prob be easiest
<FromGitter>
<mixflame> my crystal isn't advanced enough yet, i need to pick up the new changes and learn the stuff I don't know like macros
<FromGitter>
<eliasjpr> I think it would be best to define a constraints type
<FromGitter>
<eliasjpr> Class Route::Constraints end
<FromGitter>
<kvirani> hmm, but the end goal is to allow Hash and NamedTuple based constraints in the routes file
<FromGitter>
<kvirani> I'm not sure I understand the point of the class
<FromGitter>
<mixflame> @damianham I forked Datanoise's broken Mongo.cr to the Amber Community organization. It will need either @sam0x17 fixes and any other additional fixes he recommends (I only needed the one in 0x17's repository though). Merge those fixes, and we can have our first official package. Thanks.
<FromGitter>
<mixflame> I plan to add SSL to my app and check the documentation status in a while when morning wears off 😁 @elorest
<FromGitter>
<eliasjpr> Alias Constrains = Hash(String | Symbol, Regex)
<FromGitter>
<eliasjpr> I think that should do it
<FromGitter>
<eliasjpr> The alias is almost as defining a constraint
<FromGitter>
<eliasjpr> Also why a hash for contraints? Is it to hold all the contraints for the all the url params?
<FromGitter>
<Blacksmoke16> eys
<FromGitter>
<Blacksmoke16> key being the named param in the path, value being the constraint for it
<FromGitter>
<eliasjpr> I think defining a constraint type would be better to encapsulate all of the logic to aplying the constraints for each
<FromGitter>
<valamorgon> is there any way to destroy all sessions a user has?
<FromGitter>
<nsuchy> I'm reading over the documental for crystal then amber today
<FromGitter>
<nsuchy> Crystal looks almost identical to ruby with a few suttle differences and then the fact it's compiled has a different standard library and package ecosystem and its own community
<FromGitter>
<nsuchy> is there a compare and contrast of Amber to Rails
<FromGitter>
<Blacksmoke16> @nsuchy Also forgetting that Ruby is dynamically typed while crystal is statically typed
<FromGitter>
<Blacksmoke16> which is the bigger difference imo