fyber has quit [Read error: Connection reset by peer]
ht_ has quit [Remote host closed the connection]
<FromGitter>
<wwselleck> my pea brain can't find this in the docs, how do you get a substring like this? ⏎ ⏎ ```s = ":idUser" ⏎ s2 = s.substring(1) # idUser``` ⏎ ⏎ So from index i until the end of the string. [https://gitter.im/crystal-lang/crystal?at=5d8f19c67fe6a605d143f8e2]
_whitelogger has joined #crystal-lang
<oprypin>
wwselleck, `":idUser"[1..]`
erdnaxeli has joined #crystal-lang
alex`` has joined #crystal-lang
<FromGitter>
<naqvis> @sam0x17 yeah it does. So instead of block you can instantiate class and use instance write method to write Slice. You’ll have to call close by yourself then.
<FromGitter>
<j8r> @naqvis Wow thanks, I love it :D
<Groogy>
Yo! Did the / operator change or something? Getting a lot of compile errors as of sudden
<FromGitter>
<bew> Groogy, yes, now / will always mean arithmetic division, returning a float (read the changelog and PR for more info) for old behavior it's `//`
<FromGitter>
<tenebrousedge> :/
<FromGitter>
<bew> @zsxawerdu is it coc.vim ?
<Groogy>
thanks bew
<Groogy>
though will say don't like the change, it feels a bit too much like implicit conversion
<FromGitter>
<Blacksmoke16> can still use `//` which would be same as it wass
<FromGitter>
<Blacksmoke16> iirc
<Groogy>
yeah but it still feels a bit like C++ and it's implicit conversions
<FromGitter>
<j8r> @naqvis how do you do to build this libraries, you take C libs as example for instance?
DTZUZU has quit [Ping timeout: 240 seconds]
DTZUZU has joined #crystal-lang
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
<FromGitter>
<Blacksmoke16> hmm not sure how i want to setup the deserialization stuff
<FromGitter>
<Blacksmoke16> since you cant use a setter to set the value in initialize ill need to set the ivars directly
<FromGitter>
<Blacksmoke16> current idea is to define some method that returns an array of metadata, then use that to iterate over to set the ivars, where that method could handle which ones to exclude etc
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]
rohitpaulk has joined #crystal-lang
Human_G33k has quit [Quit: Leaving]
HumanG33k has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 276 seconds]
rohitpaulk has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.6]
alex`` has joined #crystal-lang
alex`` has quit [Client Quit]
alex`` has joined #crystal-lang
ht_ has quit [Quit: ht_]
rohitpaulk has quit [Ping timeout: 245 seconds]
alex`` has quit [Quit: WeeChat 2.6]
alex`` has joined #crystal-lang
sagax has quit [Read error: Connection reset by peer]
<FromGitter>
<Blacksmoke16> go this working so far
<FromGitter>
<Blacksmoke16> got*
<FromGitter>
<alehander42> guys, you use
<FromGitter>
<alehander42> A | Nil
<FromGitter>
<tenebrousedge> `A?`
<FromGitter>
<alehander42> right? for nilable? you dont have other syntax to define it? (currently bikeshedding nim's nilable syntax and looked at several other langs, including crystal)
<FromGitter>
<alehander42> ah, so you have `?`
<FromGitter>
<tenebrousedge> 👍
<FromGitter>
<alehander42> the same as c# and typescript?
<FromGitter>
<alehander42> nice, we consider it, but it might be harder to add a new symbol
<FromGitter>
<tenebrousedge> probably? it's synonymous with `A | Nil`
<FromGitter>
<tenebrousedge> I don't know c# or typescript that well
sorcus has quit [Ping timeout: 276 seconds]
sorcus has joined #crystal-lang
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
<FromGitter>
<zsxawerdu> who else is a little taken back that crystal is as fast as rust and doesn't have all the B.S. about borrowing
<FromGitter>
<tenebrousedge> well, without making a value judgment, Rust seems to be more of a systems language than Crystal is attempting to be
<oprypin>
borrowing was never for performance
<FromGitter>
<Blacksmoke16> idk anything about rust