00:00
<
robacarp >
well but is the `forall T` part needed? Why not just `def method(&block : SomeType -> T) : T`
00:01
<
FromGitter >
<dscottboggs_gitlab> you'd get a `constant T is not defined` error, unless you were in a generic class like `class Gen(T)` with a T generic type
00:02
<
FromGitter >
<dscottboggs_gitlab> I don't know what the data returned from the block is going to be, I just know I'll be receiving it from a block and then returning it from the method
00:03
<
robacarp >
I think the only time I've wanted to note that is
_in_ a generic class
00:03
<
FromGitter >
<dscottboggs_gitlab> I suppose that's a poor example because I `process result` which would require some knowledge of the type, but I've definitely come across a this a few times and thought it was a nice way of annotating that.
00:04
<
FromGitter >
<dscottboggs_gitlab> well, in a generic class then you don't need `forall` -- `forall` lets you annotate
*just a method* as being generic, without the whole surrounding type being generic
00:04
<
robacarp >
there it is.
00:04
<
robacarp >
that's what I was missing.
00:04
<
FromGitter >
<dscottboggs_gitlab> kinda like C++ template functions or rust generic functions
00:05
<
robacarp >
I'm vaguely familiar with C++ template functions, but I have no experience with rust.
00:05
<
FromGitter >
<dscottboggs_gitlab> fair enough
00:06
<
robacarp >
@dscottboggs_gitlab @vladfaust thanks for the explanations
00:06
<
FromGitter >
<dscottboggs_gitlab> np glad to help
00:07
<
FromGitter >
<vladfaust> π
04:03
DTZUZO has joined #crystal-lang
04:18
devil_tux has joined #crystal-lang
04:18
<
devil_tux >
good morning y'all
04:32
chemist69 has quit [Ping timeout: 258 seconds]
04:34
chemist69 has joined #crystal-lang
04:43
<
FromGitter >
<paulcsmith> @vladfaust so the weird thing is _ as a return type does not work for type restrictions on an instance variable.
04:43
<
FromGitter >
<paulcsmith> Or at least I couldnβt figure it out. Maybe there is a way :P
05:42
<
FromGitter >
<paulcsmith> Would love your input there if you have time
05:56
<
FromGitter >
<GabrielMorris> Hey! Running into an issue running crystal on Ubuntu -
https://pastebin.com/a7qJNVb2 . I'm in the folder with shards.yaml and I've run shards install after installing Crystal. Was working on my MBP earlier
06:12
ma_ has joined #crystal-lang
06:16
ma_ has quit [Read error: Connection reset by peer]
06:39
devil_tux has quit [Read error: Connection reset by peer]
06:56
laaron has joined #crystal-lang
08:57
<
FromGitter >
<bew> devil_tux: `("00000010").to_i(2)` can be written `0b00000010`
09:07
<
FromGitter >
<kingsleyh> morning :)
09:07
<
FromGitter >
<kingsleyh> what's a good way to find the return type of a method in Crystal?
09:20
<
FromGitter >
<kingsleyh> ooh nice thanks - didn't realise it worked for methods too!
09:22
<
FromGitter >
<alex-lairan> @kingsleyh this call the method :) β β So it's an rvalue type, not a method type ;)
09:23
<
FromGitter >
<kingsleyh> aha!
09:32
<
FromGitter >
<bew> No it doesn't call the method
09:33
<
FromGitter >
<bew> It forces the ompiler to analyze the method to find the return type
09:34
<
FromGitter >
<bew> Typeof is compile time only
09:36
<
FromGitter >
<alex-lairan> Oh ! My bad
10:00
DTZUZO has quit [Ping timeout: 255 seconds]
10:03
ashirase has quit [Ping timeout: 246 seconds]
10:06
ashirase has joined #crystal-lang
10:22
DTZUZO has joined #crystal-lang
10:29
ternarysolo has joined #crystal-lang
10:33
ternarysolo has quit [Ping timeout: 246 seconds]
10:40
blassin has quit [Ping timeout: 245 seconds]
10:40
blassin has joined #crystal-lang
11:25
return0e has quit [Remote host closed the connection]
11:35
<
FromGitter >
<vladfaust> Are there any girls in Crystal? :)
11:35
return0e has joined #crystal-lang
11:40
<
FromGitter >
<pynixwang> no
11:41
<
FromGitter >
<pynixwang> almost boys
11:42
<
FromGitter >
<pynixwang> who has a arm64 binary?
11:50
return0e_ has joined #crystal-lang
11:52
return0e has quit [Ping timeout: 255 seconds]
12:12
<
FromGitter >
<j8r> of?
12:13
<
FromGitter >
<j8r> I compile a Crystal project to arm64 with a docker alpine container with qemu
12:15
<
mps >
j8r: any other distro besides Alpine have packaged aarc64 crystal?
12:21
ternarysolo has joined #crystal-lang
12:22
<
FromGitter >
<j8r> yes
12:25
<
mps >
I can't see it on Debian so probably Ubuntu and all derivatives doesn't have it
12:29
DTZUZO has quit [Ping timeout: 252 seconds]
12:58
<
FromGitter >
<pynixwang> I try to build a working compiler, but failed
12:59
<
mps >
pynixwang: on what OS / distro
13:00
<
FromGitter >
<pynixwang> mac host build
13:00
<
FromGitter >
<pynixwang> rpi ubuntu last phase
13:00
<
mps >
which llvm version
13:01
<
FromGitter >
<pynixwang> @6
13:01
<
FromGitter >
<pynixwang> I try
13:01
<
FromGitter >
<pynixwang> failed
13:01
<
mps >
hmm, also I have problem with llvm6, make spec doesn't pass
13:02
<
FromGitter >
<j8r> @pynixwang why do you want to do it?
13:02
<
FromGitter >
<pynixwang> I use this image and do a multistage build
13:02
<
FromGitter >
<pynixwang> but not working
13:02
<
FromGitter >
<pynixwang> get work with a rpi
13:02
<
FromGitter >
<pynixwang> raspberry 3 A+
13:05
<
FromGitter >
<pynixwang> I want to open a ec2 a1 instance for last phase
13:05
<
FromGitter >
<pynixwang> rpi is too slow
13:08
<
FromGitter >
<pynixwang> spec show a "*"
13:08
<
FromGitter >
<pynixwang> is pending?
13:08
<
FromGitter >
<Blacksmoke16> yes
13:12
<
FromGitter >
<pynixwang> I try again.
13:13
<
FromGitter >
<Blacksmoke16> pending as in that spec gets skipped
13:14
<
FromGitter >
<Blacksmoke16> `Test cases that have been defined or outlined but are not yet expected to work can be defined using pending instead of it. They will not be run but show up in the spec report as pending.`
13:16
<
FromGitter >
<pynixwang> I know
13:53
<
FromGitter >
<pynixwang> rpi β crystal git:(60760a546) β ./crystal eval 'require "http"' β free(): invalid pointer β [1] 16174 abort (core dumped) ./crystal eval 'require "http"'
13:54
<
FromGitter >
<pynixwang> compiler not work
13:54
<
FromGitter >
<pynixwang> only -v works
13:55
<
mps >
pynixwang: what OS you have on rpi
13:55
<
FromGitter >
<pynixwang> gave up
13:55
<
FromGitter >
<pynixwang> ubuntu server 18.04 aarch64
13:56
<
mps >
may I suggest you to try Alpine linux
13:56
lucasb has joined #crystal-lang
13:56
<
FromGitter >
<j8r> just compile statically your app, and ship it to your RPi
13:57
<
FromGitter >
<pynixwang> use cross-tool?
13:58
<
FromGitter >
<j8r> I'm will create a Gist to explain how to do it
13:58
<
FromGitter >
<pynixwang> I try
13:58
<
FromGitter >
<j8r> but you need Docker
13:58
<
FromGitter >
<pynixwang> yes
13:59
<
FromGitter >
<pynixwang> and I try with multistage build.
13:59
<
FromGitter >
<pynixwang> not working.
14:00
<
FromGitter >
<j8r> wait, I do a gist (won't use a multi stage build)
14:00
<
FromGitter >
<pynixwang> maybe same result.
14:02
<
FromGitter >
<j8r> dppm is a Crystal project
14:02
<
FromGitter >
<TheOnlyArtz> Hey! what should I try to write when I'm practicing Crystal?
14:02
<
FromGitter >
<TheOnlyArtz> I'm still learning the language
14:02
<
FromGitter >
<r00ster91> Try making.. a typing game?
14:03
<
FromGitter >
<TheOnlyArtz> Like a Type Racer?
14:03
<
FromGitter >
<r00ster91> yeah
14:03
<
FromGitter >
<TheOnlyArtz> Oh ok
14:03
<
FromGitter >
<TheOnlyArtz> I'll go for it
14:03
<
FromGitter >
<TheOnlyArtz> I will use Kemal as the backend
14:04
<
FromGitter >
<pynixwang> try to make a bakefs static middleware
14:04
<
FromGitter >
<TheOnlyArtz> What's Bakefs?
14:05
<
FromGitter >
<pynixwang> bundle statics into binary
14:05
<
FromGitter >
<TheOnlyArtz> I will go with the type racer for now
14:06
<
FromGitter >
<TheOnlyArtz> What web framework would you suggest?
14:06
<
FromGitter >
<TheOnlyArtz> I really like Kemal right now but maybe there's something else I can look at?
14:07
<
FromGitter >
<pynixwang> Kemal is not fullstack
14:08
<
FromGitter >
<r00ster91> you could also try a newer one:
https://onyxframework.org/ β or Amber or Lucky. β Or you make it in the command-line where you do everything with Crystal. When you make it a web game you will probably make some stuff with JavaScript, HTML etc
14:11
<
FromGitter >
<pynixwang> it 's a big project
14:11
<
FromGitter >
<pynixwang> why not try to write a shard
14:14
<
FromGitter >
<pynixwang> @j8r you build dppm with multiarch/alpine?
14:16
<
FromGitter >
<Blacksmoke16> @TheOnlyArtz what will it be for? JSON API or?
14:27
<
FromGitter >
<j8r> the compilation is a bit long
14:34
<
FromGitter >
<pynixwang> you success?
14:35
<
FromGitter >
<j8r> sure
14:35
<
FromGitter >
<j8r> and you?
14:36
<
FromGitter >
<j8r> not sure this image works with multistage
14:36
<
FromGitter >
<j8r> but at least, you can have a static linked binary to include
14:37
<
FromGitter >
<pynixwang> I 'm try to build the compiler on rpi
14:37
<
FromGitter >
<pynixwang> not build app for it.
14:38
<
FromGitter >
<j8r> you can build the compiler this way too
14:38
<
FromGitter >
<j8r> this will be long, like few hours
14:39
<
FromGitter >
<pynixwang> I try
14:39
<
FromGitter >
<pynixwang> I hava a 4 cores hackintosh.
14:39
<
FromGitter >
<pynixwang> maybe faster
14:39
<
FromGitter >
<j8r> The compilation is only done in 1 core
14:40
<
FromGitter >
<j8r> the linking use 4, but this is a little part of the process
14:40
<
FromGitter >
<pynixwang> oh..
14:41
<
FromGitter >
<j8r> you have docker on you RPi?
14:41
<
FromGitter >
<pynixwang> no
14:41
<
FromGitter >
<pynixwang> hackintosh
14:42
<
FromGitter >
<j8r> ok I see!
14:57
<
FromGitter >
<TheOnlyArtz> Hey it's me again, how can I have an Hash like `data : Hash(String , AnyTypeOfData?)`
15:00
<
z64 >
in `Hash(K, V)`, `V` needs to be a union of all types you want to store in the hash
15:03
<
FromGitter >
<TheOnlyArtz> z64 can I pm you on DIscord?
15:11
<
FromGitter >
<pynixwang> not so long..
15:12
<
FromGitter >
<pynixwang> just 6 min
15:15
<
FromGitter >
<TheOnlyArtz> I've got an issue
15:15
<
FromGitter >
<pynixwang> CRYSTAL_PATH
15:15
<
FromGitter >
<TheOnlyArtz> What?
15:15
<
FromGitter >
<pynixwang> set to src
15:16
<
FromGitter >
<TheOnlyArtz> How am I doing that?
15:16
<
FromGitter >
<pynixwang> export
15:17
<
FromGitter >
<TheOnlyArtz> Can you be more descriptive ?
15:17
<
FromGitter >
<TheOnlyArtz> I don't get what you want from me
15:17
<
z64 >
what OS? and what is `crystal -v`
15:17
<
FromGitter >
<TheOnlyArtz> OS - Solus Budgie
15:17
<
FromGitter >
<TheOnlyArtz> Crystal 27.2
15:17
<
FromGitter >
<TheOnlyArtz> LLVM 4.0.0
15:18
<
FromGitter >
<TheOnlyArtz> I've install crystal with the tar.gz
15:18
<
FromGitter >
<pynixwang> make spec is long long
15:18
<
FromGitter >
<TheOnlyArtz> I've copy pasted the bin/crystal and bin/shards to the /usr/bin directory
15:19
<
FromGitter >
<TheOnlyArtz> I feel like the compiler isn't even there?
15:19
<
FromGitter >
<pynixwang> copy src to /usr/local/lib/crystal
15:19
<
FromGitter >
<TheOnlyArtz> Oh!
15:19
<
FromGitter >
<pynixwang> export CRYSTAL_PATH=/usr/local/lib/crystal
15:21
<
FromGitter >
<TheOnlyArtz> Replace CRYSTAL_PATH with the actual path?
15:21
<
FromGitter >
<TheOnlyArtz> You're not that descriptive , I really can't understand
15:23
<
FromGitter >
<pynixwang> cd crystal && cp -r src to /usr/local/lib/crystal && export CRYSTAL_PATH=/usr/local/lib/crystal
15:23
<
FromGitter >
<pynixwang> copy and paste
15:23
<
FromGitter >
<pynixwang> the
15:23
<
FromGitter >
<pynixwang> above
15:24
<
FromGitter >
<pynixwang> command line.
15:24
<
FromGitter >
<pynixwang> to
15:24
<
FromGitter >
<pynixwang> you
15:24
<
FromGitter >
<pynixwang> shell
15:24
<
FromGitter >
<pynixwang> cd crystal && cp -r src /usr/local/lib/crystal && export CRYSTAL_PATH=/usr/local/lib/crystal
15:24
<
FromGitter >
<TheOnlyArtz> Dude I'm not autistic . just asked you to be descriptive that's it.
15:24
<
FromGitter >
<pynixwang> no "to"
15:24
<
FromGitter >
<pynixwang> doc?
15:25
<
FromGitter >
<pynixwang> I forget where to find it.
15:25
<
FromGitter >
<TheOnlyArtz> I've copy pasted crystal
15:26
<
FromGitter >
<pynixwang> androidοΌ
15:26
<
FromGitter >
<TheOnlyArtz> What?
15:27
<
FromGitter >
<pynixwang> works?
15:27
<
FromGitter >
<TheOnlyArtz> working on it
15:27
<
FromGitter >
<pynixwang> os like android.
15:27
<
FromGitter >
<TheOnlyArtz> It's called Solus Budgie
15:28
<
FromGitter >
<TheOnlyArtz> One of the best Linux experiences I've ever had
15:28
<
FromGitter >
<pynixwang> oh..
15:28
<
FromGitter >
<kingsleyh> wow Solus Budgie looks cool!
15:28
<
FromGitter >
<kingsleyh> I'd never heard of it - looks like it's written from scratch
15:28
<
FromGitter >
<TheOnlyArtz> It's really good IMO
15:29
<
FromGitter >
<TheOnlyArtz> @pynixwang Doesn't seem to work
15:30
<
FromGitter >
<pynixwang> add src to end.
15:31
<
FromGitter >
<TheOnlyArtz> What do you mean end?
15:31
<
FromGitter >
<pynixwang> /usr/lib/crystal/src
15:31
<
FromGitter >
<TheOnlyArtz> h
15:31
<
FromGitter >
<TheOnlyArtz> oh
15:33
<
FromGitter >
<TheOnlyArtz> It seems like Crystal works perfectly on specific environemnts
15:33
<
FromGitter >
<kingsleyh> it looks like Solus supports LinuxBrew - so installing that would make installing crystal and lots of other stuff easy
15:33
<
FromGitter >
<pynixwang> spec slow
15:34
<
FromGitter >
<TheOnlyArtz> @kingsleyh Seems about right
15:34
<
FromGitter >
<TheOnlyArtz> Where did you see that?
15:34
<
FromGitter >
<pynixwang> linuxbrew is awesome
15:36
<
FromGitter >
<TheOnlyArtz>
*install LinuxBrew*
15:39
<
FromGitter >
<pynixwang> /crystal # ldd .build/crystal β /lib/ld-musl-aarch64.so.1 (0x4000000000) β libLLVM-5.0.so => /usr/lib/libLLVM-5.0.so (0x4001915000) β libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4003ebb000) β libpcre.so.1 => /usr/lib/libpcre.so.1 (0x4004029000) ... [
https://gitter.im/crystal-lang/crystal?at=5c828cb2e527821f0a25cb57 ]
15:39
<
FromGitter >
<pynixwang> oh. no...
15:43
<
FromGitter >
<pynixwang> CRYSTAL_PATH from bin/crystal wrapper script. @TheOnlyArtz
15:45
DTZUZO has joined #crystal-lang
15:45
<
FromGitter >
<kingsleyh> does Crystal run well on Solus?
15:47
<
FromGitter >
<TheOnlyArtz> I still didn't manage to test it
15:53
<
FromGitter >
<TheOnlyArtz> @kingsleyh
15:53
<
FromGitter >
<TheOnlyArtz> Installing it using brew
16:15
<
FromGitter >
<TheOnlyArtz> @kingsleyh I don't think it worked
16:18
<
FromGitter >
<pynixwang> /crystal # ldd .build/crystal β /usr/bin/ldd (0x4000000000)
16:18
<
FromGitter >
<kingsleyh> @TheOnlyArtz what was the last thing it said?
16:18
<
FromGitter >
<pynixwang> why a static build depend on ldd
16:18
<
FromGitter >
<TheOnlyArtz> idk Pynix
16:19
<
FromGitter >
<TheOnlyArtz> Kingsley, I'm reinstalling it after I'm removed the files I've put manually at /usr/bin
16:19
<
FromGitter >
<TheOnlyArtz> so sec
16:25
<
FromGitter >
<TheOnlyArtz> But doing `crystal` doesn't work
16:30
<
FromGitter >
<kingsleyh> strange!
16:31
<
FromGitter >
<pynixwang> why..
16:31
<
FromGitter >
<kingsleyh> I don't see any docker image for Solus on dockerhub - which is a shame
16:32
<
FromGitter >
<TheOnlyArtz> Solus is underrated
16:32
<
FromGitter >
<TheOnlyArtz> lmao
16:33
<
FromGitter >
<TheOnlyArtz> I've managed to install it!
16:34
<
FromGitter >
<kingsleyh> nice
16:34
<
FromGitter >
<kingsleyh> what was the problem?
16:34
<
FromGitter >
<TheOnlyArtz> idk
16:34
<
FromGitter >
<TheOnlyArtz> I've manually pasted the bin to the `/bin`
16:35
<
FromGitter >
<TheOnlyArtz> Now it errors and says I need to install dev package for libgc
16:35
<
FromGitter >
<kingsleyh> oh maybe doing brew doctor will tell you if there any issues
16:35
<
FromGitter >
<TheOnlyArtz> hmm what
16:35
<
FromGitter >
<kingsleyh> sometimes brew install stuff but you then have to manually run another link command to symlink the binary to the path
16:36
<
FromGitter >
<kingsleyh> try running: brew doctor
16:36
<
FromGitter >
<kingsleyh> and see if it shows any problems
16:38
<
FromGitter >
<TheOnlyArtz> They are optional
16:38
<
FromGitter >
<kingsleyh> yeah - depends on what you want to code
16:39
<
FromGitter >
<TheOnlyArtz> I need to find that `libgc` - how to install it on SOlus
16:40
<
FromGitter >
<kingsleyh> probably you can install it with the Solus package manager
16:40
<
FromGitter >
<TheOnlyArtz> I can't manage to find it
16:41
<
FromGitter >
<TheOnlyArtz> There's only `libgcc`
16:42
<
FromGitter >
<straight-shoota> The bigger distributions usually provide libgc but it's not commonly available everywhere
16:43
<
FromGitter >
<TheOnlyArtz> What a hassle
16:45
<
FromGitter >
<straight-shoota> You might try if that works.
16:46
<
FromGitter >
<TheOnlyArtz> So I need to do it fully manual again?
16:46
<
FromGitter >
<TheOnlyArtz> What compressed file do I need to install from that release
16:46
<
FromGitter >
<TheOnlyArtz> crystal-0.27.2-1-linux-x86_64.tar.gz β ?
16:46
<
FromGitter >
<straight-shoota> yes
16:47
<
FromGitter >
<TheOnlyArtz> Ok I've installed it
16:47
<
FromGitter >
<TheOnlyArtz> Now what?
16:47
<
FromGitter >
<TheOnlyArtz> Do I need to put all the crystal/bin files in the correct dir?
16:51
<
FromGitter >
<TheOnlyArtz> That's not how Solus built tho
16:52
<
FromGitter >
<TheOnlyArtz> We don't have /someDir/local here
17:04
<
FromGitter >
<TheOnlyArtz> I've combined the libgc.a and the linuxbrew installment
17:04
<
FromGitter >
<TheOnlyArtz> Worked :)
17:04
<
FromGitter >
<kingsleyh> nice :)
18:02
crystal-lang564 has joined #crystal-lang
18:05
lucasb has quit [Quit: Connection closed for inactivity]
18:11
<
FromGitter >
<straight-shoota> π
18:15
<
crystal-lang564 >
help
18:16
<
FromGitter >
<Blacksmoke16> ?
18:17
crystal-lang564 is now known as micha-cr
18:18
micha-cr is now known as crystal-lang564
18:21
<
FromGitter >
<TheOnlyArtz> Did someone use Kemal before and knows how to use static files? I've followed the docs and it doesn't seem to work
18:27
crystal-lang564 has quit [Quit: Page closed]
18:29
crystal-lang564 has joined #crystal-lang
18:36
<
FromGitter >
<Blacksmoke16> @TheOnlyArtz im pretty sure if you create a `public` directory outside of `src` it would just do it for you
18:37
<
FromGitter >
<TheOnlyArtz> It doesn't work for some reason
18:38
<
FromGitter >
<Blacksmoke16> but what happens if you move your `public` folder to same level as `src` and `spec` and not do `public_folder "src/public" β `
18:38
crystal-lang564 has quit [Quit: Page closed]
18:38
<
FromGitter >
<TheOnlyArtz> sec
18:39
<
FromGitter >
<TheOnlyArtz> Nope
18:39
<
FromGitter >
<TheOnlyArtz> Maybe it doesn't meant to work with ecr?
18:39
<
FromGitter >
<TheOnlyArtz> But then it would be kind of weird
18:42
<
FromGitter >
<Blacksmoke16> sec
18:46
<
FromGitter >
<Blacksmoke16> hm yea
18:47
<
FromGitter >
<Blacksmoke16> no it works
18:48
<
FromGitter >
<TheOnlyArtz> Did it work for you? @Blacksmoke16
18:48
<
FromGitter >
<Blacksmoke16> yes
18:48
<
FromGitter >
<TheOnlyArtz> With `.ecr`?
18:48
<
FromGitter >
<Blacksmoke16> ecr you have to render
18:48
<
FromGitter >
<Blacksmoke16> its not a static file
18:48
<
FromGitter >
<TheOnlyArtz> of course
18:48
<
FromGitter >
<TheOnlyArtz> But how do you access static files from an ecr
18:49
<
FromGitter >
<Blacksmoke16> prob like you would in that HTML example?
18:50
<
FromGitter >
<TheOnlyArtz> But Kemal need to do that for you
18:52
<
FromGitter >
<TheOnlyArtz> Oh it works for me now too
18:52
<
FromGitter >
<Blacksmoke16> for ecr files you'd have to define kemal routes to render the ecr file to html or however that works
18:53
<
FromGitter >
<Blacksmoke16> which you can include static files like your css etc like in that example
18:54
<
FromGitter >
<Blacksmoke16> yes
18:54
<
FromGitter >
<Blacksmoke16> afaik thats how you'd have to do it
18:54
<
FromGitter >
<TheOnlyArtz> Sweet
18:54
DTZUZO has quit [Ping timeout: 250 seconds]
18:54
<
FromGitter >
<Blacksmoke16> im more used to the non server rendered sites, like angular
18:55
<
FromGitter >
<TheOnlyArtz> gotcha
18:56
DTZUZO has joined #crystal-lang
20:35
go|dfish has quit [Ping timeout: 246 seconds]
20:40
ternarysolo has quit [Ping timeout: 250 seconds]
20:52
bmcginty has quit [Ping timeout: 250 seconds]
20:54
bmcginty has joined #crystal-lang
21:09
ternarysolo has joined #crystal-lang
21:14
go|dfish has joined #crystal-lang
21:17
ternarysolo has quit [Ping timeout: 252 seconds]
21:30
<
FromGitter >
<TheOnlyArtz> ``````
21:30
ua has quit [Ping timeout: 255 seconds]
21:30
<
FromGitter >
<TheOnlyArtz> ``````
21:30
<
FromGitter >
<TheOnlyArtz> Omg sorry , idk how to use gitter for phone, I guess there's not option to do a newline here
21:33
<
FromGitter >
<TheOnlyArtz> Shouldn't crystal be null safe?
21:33
<
FromGitter >
<Blacksmoke16> it is, but you're not doing anything that could result in a null pointer exception
21:34
<
FromGitter >
<Blacksmoke16> now you're trying to use a method on a var that could be either `String` or `Nil` so would have to make sure its not nil before using it
21:38
<
FromGitter >
<Blacksmoke16> @TheOnlyArtz
21:43
ua has joined #crystal-lang