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
Starfoxxes has quit [Ping timeout: 240 seconds]
renichbon has joined #crystal-lang
renich has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
renichbon has quit [Quit: Leaving]
Guest70931 is now known as mookie
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
jmdaemon has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 252 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter> <didactic-drunk> How to restrict `foo(a)` to `not_nil` variant of `T`? ⏎ ⏎ ```class C(T) ⏎ def foo(a : T.not_nil)``` [https://gitter.im/crystal-lang/crystal?at=62302425d1b64840db68c020]
ur5us has joined #crystal-lang
<FromGitter> <sheisekopf1267_gitlab> I'm completely stuck, I've been working on a project to build a scraper and no matter what I do I get a null error. The project is a web scraper, and what I'm doing is checking the first letter of each line. Heres the code:
<FromGitter> <sheisekopf1267_gitlab> #required shards ⏎ ⏎ #require http allows HTTP::Client.get command ⏎ ⏎ require "http" ... [https://gitter.im/crystal-lang/crystal?at=6230300dc435002500f045b1]
<FromGitter> <sheisekopf1267_gitlab> require "http" ⏎ ⏎ require "xml" ⏎ ⏎ xml = HTTP::Client.get("https://en.wikipedia.org/wiki/Balloon").body ... [https://gitter.im/crystal-lang/crystal?at=623030439bd1c71ecaa2cc85]
<FromGitter> <didactic-drunk> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=62303313c61ef0178e73bea6]
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
notzmv has joined #crystal-lang
Starfoxxes has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 252 seconds]
<FromGitter> <asterite> @didactic-drunk it can be done with macros, but it will be quite unpleasant. What are you trying to do?
<FromGitter> <Blacksmoke16> @sheisekopf1267_gitlab if you just want to select only `href` could prob just do something like
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=62308d8d257a3578252e3614]
HumanG33k has quit [Ping timeout: 240 seconds]
HumanG33k has joined #crystal-lang
<FromGitter> <sheisekopf1267_gitlab> Sorry, I had to sleep for a bit. @Blacksmoke16 I'm just trying to select the href's.
<FromGitter> <Blacksmoke16> give that code a try then ^
<FromGitter> <didactic-drunk> @asterite `T` is user specified and may be `nil`. `C` reads an input channel with possibly `nil T`. `foo` returns `Array(T.not_nil)` of processed values
renich has joined #crystal-lang
ur5us has joined #crystal-lang
renich has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 240 seconds]
jmdaemon has joined #crystal-lang
ngp has quit [Quit: connection reset by purr]
renich has joined #crystal-lang
jmdaemon has quit [Ping timeout: 256 seconds]
jmdaemon has joined #crystal-lang
ur5us has joined #crystal-lang
renichbon has joined #crystal-lang
renich has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter> <Blacksmoke16> @sheisekopf1267_gitlab get it working?
renichbon has quit [Quit: Leaving]