ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.4 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
onethirtyfive has quit [Ping timeout: 250 seconds]
soveran has joined #crystal-lang
<FromGitter> <iDev0urer> So correct me if I'm wrong, but Crystal doesn't have any kind of `interface` structure does it?
<FromGitter> <jwoertink> Like Java?
<FromGitter> <jwoertink> You could just make a module and include it in your class.
<FromGitter> <iDev0urer> Yeah, something like that. Just a way to tell the type system that a Class or Struct contains certain methods or properties so that the interface can be referenced rather than the Class. Or is that how module including works?
<FromGitter> <iDev0urer> Guess you answered while I was typing haha
<FromGitter> <jwoertink> When you have a module and you define instance methods then include it in a class, that class now has those instance methods
soveran has quit [Ping timeout: 276 seconds]
<FromGitter> <iDev0urer> So can I use `Iterable` as a type parameter on a method and then pass in anything that includes that module, like Hash?
<FromGitter> <jwoertink> If you extend the module `extend SaidModule` those methods become class level methods
<FromGitter> <iDev0urer> Ahhhh ok
<FromGitter> <iDev0urer> That's one thing that I haven't understood about Ruby and Crystal until now
<FromGitter> <jwoertink> Ah. Yeah, that's the difference between `include Mod` and `extend Mod`
<FromGitter> <jwoertink> Just changing Thing.new.whatever vs Thing.whatever
<FromGitter> <jwoertink> Oh, as for your Iterable question, if I understand correctly, I don't think so
<FromGitter> <jwoertink> But not 100% sure on that
snsei has quit [Remote host closed the connection]
<FromGitter> <iDev0urer> So it looks like you can do the following: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ because `Array` doesn't actually include `Stringable` [https://gitter.im/crystal-lang/crystal?at=580c040e56121b9c7eaeb692]
<FromGitter> <iDev0urer> This is where interfaces are gold
jeromegn has quit [Ping timeout: 250 seconds]
jeromegn has joined #crystal-lang
jeromegn has quit [Ping timeout: 260 seconds]
jeromegn_ has joined #crystal-lang
soveran has joined #crystal-lang
HakanD_ has quit [Quit: Be back later ...]
HakanD_ has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
HakanD_ has quit [Client Quit]
HakanD_ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 265 seconds]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 245 seconds]
matp has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
kulelu88 has quit [Quit: Leaving]
Philpax_ has quit [Ping timeout: 260 seconds]
dhk has quit [Ping timeout: 244 seconds]
gloscombe has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
onethirtyfive has joined #crystal-lang
bjz has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
bjz has quit [Ping timeout: 260 seconds]
bjz has joined #crystal-lang
Philpax has joined #crystal-lang
<crystal-gh> [crystal] iDev0urer opened pull request #3459: Add checkbox support to markdown (master...add-checkbox-support-to-markdown) https://git.io/vPbz9
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
Philpax__ has joined #crystal-lang
Philpax_ has quit [Ping timeout: 244 seconds]
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<BlaXpirit> iDev0urer, just use duck typing then, don't specify the type
<BlaXpirit> also, isn't absolutely everything "stringable"?
<FromGitter> <iDev0urer> Good point lol
<FromGitter> <iDev0urer> On both accounts
pawnbox has joined #crystal-lang
mhib has joined #crystal-lang
mhib has quit [Client Quit]
mhib has joined #crystal-lang
Philpax__ has quit [Ping timeout: 260 seconds]
Philpax__ has joined #crystal-lang
soveran has joined #crystal-lang
<Yxhuvud> At least Ruby has some that really isn't, such as BasicObject.
<RX14> @iDev0urer you can also have abstract classes BTW, if you want EXACTLY the same semantics as an interface in java
<RX14> although modules with abstract methods work just as well in most cases and you can have multiple
soveran has quit [Remote host closed the connection]
bjz has quit [Ping timeout: 250 seconds]
bjz has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
snsei has joined #crystal-lang
Ven_ has joined #crystal-lang
Ven has quit [Ping timeout: 256 seconds]
HakanD_ has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
Ven_ has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
bjz has quit [Ping timeout: 260 seconds]
snsei has quit [Remote host closed the connection]
dom96 has quit [Changing host]
dom96 has joined #crystal-lang
bjz has joined #crystal-lang
dhk has joined #crystal-lang
Ven has quit [Ping timeout: 244 seconds]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven_ has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
mhib has quit [Quit: Leaving]
Ven_ has quit [Ping timeout: 252 seconds]
Ven has joined #crystal-lang
HakanD_ has quit [Quit: Be back later ...]
HakanD_ has joined #crystal-lang
HakanD__ has joined #crystal-lang
HakanD_ has quit [Ping timeout: 250 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HakanD__ has quit [Quit: Be back later ...]
pawnbox has quit [Ping timeout: 276 seconds]
HakanD__ has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven_ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
jokke has quit [Quit: WeeChat 1.5]
matp has quit [Excess Flood]
dhk_ has joined #crystal-lang
matp has joined #crystal-lang
dhk has quit [Ping timeout: 265 seconds]
jokke has joined #crystal-lang
HakanD___ has joined #crystal-lang
HakanD__ has quit [Ping timeout: 244 seconds]
HakanD___ is now known as HakanD
Ven_ has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<FromGitter> <sdogruyol> @raydf is your stmp shard working?
mhib has joined #crystal-lang
HakanD has quit [Quit: Be back later ...]
pawnbox has joined #crystal-lang
HakanD has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<crystal-gh> [crystal] azah opened pull request #3462: Update gitignore template for .DS_Store files (master...patch-1) https://git.io/vPbjf
<FromGitter> <raydf> Hi @sdogruyol , yeah but there's a lot to do with it. Add ssl and proxy support and other details.
<FromGitter> <raydf> I have tested it with linux postfix
Ven has quit [Ping timeout: 244 seconds]
<FromGitter> <raydf> there's also the pending task for multipart mime smtp
<FromGitter> <sdogruyol> @raydf can you connect to other smtp services like gmail so?
<FromGitter> <raydf> let me check gmail docs
Ven has joined #crystal-lang
<FromGitter> <raydf> no @sdogruyol , gmail needs tls and plain auth
<FromGitter> <raydf> plain auth is simple to implement
HakanD has quit [Quit: Be back later ...]
<FromGitter> <raydf> tls i need to check the crystal src code
<FromGitter> <raydf> crystal std lib code
<FromGitter> <sdogruyol> there's tls at std
HakanD has joined #crystal-lang
<FromGitter> <raydf> yeahh but i haven't used it yet. Would yo like to get ownership of the shard?
<FromGitter> <raydf> this week i don't have time to develop this features.
<FromGitter> <sdogruyol> well i don't know much about smtp stuff
<FromGitter> <sdogruyol> wish i could help
<FromGitter> <raydf> i know almost all the RFC
<FromGitter> <sdogruyol> that's cool
<FromGitter> <raydf> but i don't have much time right now
<FromGitter> <raydf> if you can wait i'll try to help you, or maybe we could find someone else in the comunity with the knowledge
<FromGitter> <raydf> It's very similar to the multipart http standard
<FromGitter> <raydf> right now you can create a forwarding smtp service that could translate to gmail
<FromGitter> <sdogruyol> i can wait for now, if i have time i'll ping you for development
<FromGitter> <raydf> ok, i'll try to add tls and plain auth by first week of november
<FromGitter> <sdogruyol> cool, thanks a lot
<FromGitter> <raydf> and later i'll add multipart (embedded images in mails)
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Ven has quit [Ping timeout: 245 seconds]
Ven has joined #crystal-lang
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
Philpax__ has quit [Ping timeout: 260 seconds]
Ven has quit [Ping timeout: 260 seconds]
kulelu88 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
mhib has quit [Read error: Connection reset by peer]
soveran has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has quit [Ping timeout: 256 seconds]
HakanD has quit [Quit: Be back later ...]
HakanD has joined #crystal-lang
HakanD has quit [Ping timeout: 256 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]