<FromGitter>
<sam0x17> hey so I have an abstract class with an abstract method signature like `abstract def each_file(&block)` is there a way I can have it specify that the block has to yield a string? I'm guessing some sort of proc syntax but I always get fuzzy on the difference between blocks and procs
_ht has joined #crystal-lang
_whitelogger has joined #crystal-lang
_ht has quit [Remote host closed the connection]
Human_G33k has quit [Quit: Leaving]
ur5us has joined #crystal-lang
tdc has joined #crystal-lang
repo has left #crystal-lang ["WeeChat 2.7"]
repo has joined #crystal-lang
alexherbo2 has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter>
<maattdd> hi :) The postgres driver (crystal-pg) mentions supporting array types but the README shows only reading array value from the DB. Does it support passing an Array as an arg to db.query ?
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
postmodern has quit [Quit: Leaving]
<FromGitter>
<Blacksmoke16> would more so be `& : String -> _`
<FromGitter>
<Blacksmoke16> assuming he wants to *yield* a string, versus have the return value of the block be a string
<FromGitter>
<Blacksmoke16> also id use `&`, to indicate the method can yield but the block cant be captured
<FromGitter>
<naqvis> yeah, my understanding of question "....block has to yield a string...." was that its being asked on how to enforce type checking on return type of block.
<FromGitter>
<naqvis> But its good to have answer to both questions